Add the [data-variant-*] attribute to components #393
Unanswered
fabio-algomera
asked this question in
Feature Requests
Replies: 1 comment 1 reply
-
Like that idea, @fabio-algomera ! |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey!!! :)
After many tests to define the easiest and correct way of overriding component styling (following the documentation anyway) I came to the conclusion that I should set the styles in the app.css file.
However, there are some elements (e.g. buttons) that need different styling depending on the variant you are using, e.g.:
In this case, by selecting only
[data-flux-button]
I can't figure out which variant it refers to, resulting in going to affect buttons that I don't want to change.My idea is to add, where there are variants present, a
[data-variant-*]
attribute so you can properly select the variant of the element you want to customize.An example:
What are your opinions on this? :)
Beta Was this translation helpful? Give feedback.
All reactions