-
Notifications
You must be signed in to change notification settings - Fork 163
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Examples theme picker does not reflect selected theme #5069
Comments
Yes, the issue is there is no "selected" style at all in the picker. The style of the buttons reflects the theme itself, but none have a selected state. It was kind of quickly hacked in when we worked on theming migration with guests, so it's not ideal. If you want to play around @jmuzina you can try replacing current switcher with more appropriate component such as segmented control: https://vanillaframework.io/docs/patterns/segmented-control. One issue you may get into is that currently Vanilla examples are not implementing the themes in consistent way, and not all of them have a default class name set on body, so it's not always trivial to tell which is the "current" theme when example loads. Another cool feature we could introduce would be to reflect the theme in the URL Feel free to play around during this week, and maybe we can turn this into something you could be working on while we are in Madrid. |
IMO just the words are enough, you could say:
|
Describe the bug
The color theme selection control on the
docs/examples
pages always shows "Dark" as the selected theme. On initial load, it appears to default to "Light" theme but shows "Dark" as active. Clicking the theme buttons changes the theme for supported components but does not update which theme is highlighted in the theme selector; Dark theme is always highlighted.To Reproduce
Steps to reproduce the behavior:
/docs/examples
page. For example, https://vanillaframework.io/docs/examples/base/detailsExpected behavior
The color theme picker always highlights the button for the currently selected color theme.
Screenshots
Desktop:
The text was updated successfully, but these errors were encountered: