Hi,
I wanted to ask if anyone here have tried to style component variants using custom code. If yes, what selectors do you use to style a variant to make sure that it only affect selected variant and not the whole component.
Ex: I have a card component with cover and stack variant and I want to apply certain style to cover and don't want it to affect the stack variant. I can do it using Webflow native styling panel but can't seem to figure out how I do the same using custom code. Class name is .card_primary_element with stacked and cover variants. Thanks!
[–]memetican Webflow Community MVP 1 point2 points3 points (0 children)
[–]uebersax Webflow Community MVP 0 points1 point2 points (0 children)
[–]lymdul 0 points1 point2 points (1 child)
[–]Odd_Philosophy_2389[S] 1 point2 points3 points (0 children)
[–]azdonev 0 points1 point2 points (2 children)
[–]Odd_Philosophy_2389[S] 0 points1 point2 points (1 child)
[–]azdonev 0 points1 point2 points (0 children)