Skip to content

Conversation

samcunliffe
Copy link
Member

Fixes

as suggested by @jamesprime by adding an aria label to labelless button. Confirmed with macOS's "VoiceOver" screen reader...

Screenshot 2025-06-03 at 13 25 10


As with the ☼ / ☾ it's a bit WET because it needs declaring and then the same lines appear in the switch conditional.

@samcunliffe samcunliffe requested a review from a team June 3, 2025 12:42
@samcunliffe samcunliffe added enhancement New feature or request accessibility Something relating to the ease of accessibility (alt-text, colour choices, language, etc) labels Jun 3, 2025
@dstansby
Copy link
Member

dstansby commented Jun 3, 2025

Could we upstream this into the theme source?

@samcunliffe
Copy link
Member Author

samcunliffe commented Jun 3, 2025

Could we upstream this into the theme source?

Yep. Deleting this whole custom thing is waiting on just-the-docs/just-the-docs#1223 (which I think is just-the-docs/just-the-docs#1099)

Copy link
Member

@paddyroddy paddyroddy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lovely accessible work

@samcunliffe samcunliffe merged commit 5865e38 into main Jun 5, 2025
15 checks passed
@samcunliffe samcunliffe deleted the sc/fix-537-add-aria-label branch June 5, 2025 18:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accessibility Something relating to the ease of accessibility (alt-text, colour choices, language, etc) enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants