3 ms·
I've used a similar approach in the past but found that having styles for each component also defined in vaious 'contexts' became quite confusing. Using modifie
by wizzzzzy 7y ago
I've used a similar approach in the past but found that having styles for each component also defined in vaious 'contexts' became quite confusing. Using modifier classes defined alongside the component I found to be easier to understand / follow and also improved usability of those those styles across the codebase.
- ehnto 7y agoI have been playing with bringing modifiers in for when the context isn't why something gas changed. Like a normal product card and a special product card.