My understanding of class chaining in Bricks at the moment is that you can either have no class chaining at all or all of your classes applied to an element are chained together.
I often find myself applying modifier classes to tweak some styling on a use-by-use basis but often want to chain the classes together so that the modifier class has a dependency on the base class (i.e., base class: ‘.card’ and modifier: ‘dark’. I want the styles on .dark to apply to ‘.card.dark’).
Currently, the only way to achieve this is through styling the modifier using custom CSS, such as ‘%root%.card’. I think a nice addition would be the ability to select 2 or more classes from the list of global classes applied to an element, and when you make style changes with that selection, it chains them together.
I feel this could make Bricks more flexible and provide the capability to author more robust components.
Let me know your thoughts!