4 ms·
I instead use <div class=“flex”><\div> now. If the class name is not enough for me to guess, I just hover the class name and the LSP will show me the applied s
by iammrpayments 2y ago
I instead use <div class=“flex”><\div> now.
If the class name is not enough for me to guess, I just hover the class name and the LSP will show me the applied styles.
Another issue is that Shopify changes the name of these components for no reason, for example InlineStack was once called Inline, then HorizontalStack, then InlineStack, while the flex box model hasn’t change since 2012
- biohacker85 2y agoNaming things is hard but I feel like there is something odd about a class name referencing a single CSS property as it is basically an inline style: <div style=“display: flex”></div>
- dsego 2y agoNot sure why it matters, <b> is the same as <span style="font-weight: bold">... If you want, name it "stack" or "vbox" instead of "flex".