addon-themes: ability to have multiple buttons #25944
VincentGarreau
started this conversation in
Ideas
Replies: 1 comment
-
I figured out a way you can achieve this. So this solution doesn't give you two buttons, but it does give you a single button that can be used to toggle two (or more) custom
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is your feature request related to a problem? Please describe.
In my design system, for each theme I have a light and dark mode.
In my code, it's managed by setting a
data-theme
and adata-mode
attribute.Problem: Unless I'm mistaken, I didn't manage to load the addon twice (in my case setting
withThemeByDataAttribute
twice in the decorators), and it seems we can't set multiple "themes".Describe the solution you'd like
Having the ability to have multiple switchers, like in the screen below:
below
Describe alternatives you've considered
No response
Are you able to assist to bring the feature to reality?
no
Additional context
No response
Beta Was this translation helpful? Give feedback.
All reactions