-
Notifications
You must be signed in to change notification settings - Fork 319
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
A11Y: Add title attribute to theme switcher #1924
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sweet!
I'm wondering about word choice, though. I think it would be useful to get Isabela to weigh in during the team sync.
I also think the strings should be translatable, right?
src/pydata_sphinx_theme/theme/pydata_sphinx_theme/components/theme-switcher.html
Outdated
Show resolved
Hide resolved
src/pydata_sphinx_theme/theme/pydata_sphinx_theme/components/theme-switcher.html
Outdated
Show resolved
Hide resolved
Yep, sounds good, I'm usually bad at narative and text bing @isabela-pf for the text |
After merging #1921, this now has conflicts |
No worries, I'll rebase. |
src/pydata_sphinx_theme/theme/pydata_sphinx_theme/components/theme-switcher.html
Outdated
Show resolved
Hide resolved
This will add a `<title>` attribute to the SVG generated by font awesome, which will in turn update the Accessibility tree, which will now be - button "light/dark" focusable: true focused: bool - image: $title-text Should fix Quansight-Labs/czi-scientific-python-mgmt#76
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, thanks! I like the addition of the translation test :)
Thanks ! |
This will add a
<title>
attribute to the SVG generated by font awesome, which will in turn update the Accessibility tree, which will now beShould fix Quansight-Labs/czi-scientific-python-mgmt#76