Include data-flux-variant
in rendered HTML
#693
Unanswered
TimBroddin
asked this question in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
Thanks for this amazing library 🙏 While looking to customize the button with a different background color, I discovered that the suggested code applies this to all button variations (including the outline).
As a workaround I published the button component, and edited it to output the variant as well:
This way I can style only the primary buttons as:
Would it be an idea to include this functionality in every component of Flux Pro? This (or having CSS variables for styling) would make customization much easier.
Beta Was this translation helpful? Give feedback.
All reactions