If I create a component variant the style applied to an arbitrary class name generated by bricks. Is it possible to use the base variant class and use the same class and it’s data-attribute value should be the name of the variant.?
Example: .my-custom-class[data-brx-variant=“variant-name”] { ….css style properties}.
4 Likes
+1 for this.
Hopefully this gets implemented
1 Like
I just looked at the component variants and don’t understand the point behind them.
It seems as if the workflow is currently only suitable for people who work at the ID level.
When working with classes, component variants don’t work. Is that correct, or am I misunderstanding something?
For it to work, it would have to function as Macaw described.
The release from yesterday’s changelog says this should now work as described by OP
I just tested it wie RC2. It doesn’t work.
“Component style variants: Use variant Id in %root%”
But I also believe that this has nothing to do with classes.
Maybe someone else can check it again. Maybe I’m just doing it wrong.
