We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Unfortunately, it’s not possible to switch themes on mobile or use it via keyboard even on desktop.
It shows the list of options only when you hover #toggleTheme:
#toggleTheme
<li id="toggleTheme">Change Theme <ul> <li data-value="" class="selected">Auto</li> <li data-value="dark">Dark</li> <li data-value="light">Light</li> </ul> </li>
To make it work better, markup should look like this:
<button type="button" aria-controls="theme-toggler" aria-expanded="false"> Change Theme </button> <ul id="theme-toggler"> <li> <button type="button" aria-pressed="false" value="auto"> Auto </button> </li> <li> <button type="button" aria-pressed="true" value="dark"> Dark </button> </li> <li> <button type="button" aria-pressed="false" value="light"> Light </button> </li> </ul>
aria-expanded
true
false
aria-pressed
There’s a good article on web.dev
The text was updated successfully, but these errors were encountered:
queengooborg
No branches or pull requests
Unfortunately, it’s not possible to switch themes on mobile or use it via keyboard even on desktop.
It shows the list of options only when you hover
#toggleTheme
:To make it work better, markup should look like this:
aria-expanded
should switch totrue
false
againaria-pressed
should switch totrue
false
There’s a good article on web.dev
The text was updated successfully, but these errors were encountered: