I like this, well done. Functionally on mobile all seems to work well
The only thing I would change is how you are labelling the theme switcher
- you have the numbers in html anyway that should act as labels. You could prefix the numbers with the word "theme" in a Sr-only span if you wanted to make that labelling more explicit
- empty label elements should never exist in html. If their purpose is for styling, use a meaningless element
- the other reason why I recommend using Sr-only or any text in html for labelling is because aria-label is not translatable, whereas other text in the html is
I hope this info is helpful
Marked as helpful
@grace-snow Thank you for your feedback Grace !
I'm still a beginner with accessibility related stuff, so your detailed feedback about the theme switcher is very useful. I'll definitely work on the corrections you suggested.
EDIT:
- Replaced empty labels with span elements.
- Replaced span elements(theme numbers) with labels.
- Investigated how to use sr-only for the theme switcher. While it is a good option, I think I won't be that explicit, I downloaded NVDA for windows and the screen reader reads "Theme #X radio button checked X of 3", when I click on the X theme.