Custom Fonts: Improve Accessibility on Settings screen
See original GitHub issueBug Description
In #9966 we added a custom fonts section to the settings screen, to allow adding custom fonts by URL. It did not contain any a11y work, but there was also no follow-up ticket for that yet.
This feature right now is completely unusable with keyboard or assistive technologies. It’s impossible to tab into it in the first place.
Expected Behaviour
The Current Fonts
list needs proper role="list"
and role="listitem"
attributes and keyboard support so that users can tab into it, select fonts using ArrowUp/ArrowDown keys and delete a font using the keyboard as well.
Steps to Reproduce
Screenshots
Additional Context
- Plugin Version: 1.18.0
- WordPress Version: 5.9
- Operating System: macOS
- Browser: Chrome
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (6 by maintainers)
Top Results From Across the Web
Change text and display settings - Android accessibility Help
Change text and display settings ; Use bold fonts · Tap Accessibility and then Display size and text. Turn Bold text on or...
Read more >Accessibility setting that every App to support | by Gokul G
Supporting custom fonts A utility object for obtaining custom fonts that scale to support Dynamic Type. We can categories our UI component into ......
Read more >Six steps to make your social media content more accessible
Six steps to make your social media content more accessible · 1. Add alt text · 2. Beware of custom fonts and excessive...
Read more >Do Dyslexia Fonts Improve Accessibility?
Dyslexia fonts are specialized typefaces intended to improve reading comprehension. However, they're not a magic bullet for improving ...
Read more >How to Change Text Size or Colors - W3C
It's up to the website owner. It's not an accessibility requirement that websites include information on changing text sizes and colors like this...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
IIRC in a listbox there always needs to be a selected element. Even before focus and even when tabbing out of it.
My Preferred Languages WP plugin does that, if looking for inspiration.
@timarney is this where the failing e2e tests are getting flagged? https://github.com/GoogleForCreators/web-stories-wp/runs/5630868893?check_suite_focus=true#step:9:27
I’m trying to figure out the best path forward for making sure that enabling the floating menu isn’t messing with other tests. If what you’re working on will solve it then I will sit tight. Please let me know. thanks!