-
-
Notifications
You must be signed in to change notification settings - Fork 8.5k
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
fix(theme): announce theme switches #8174
Conversation
✅ [V2]
To edit notification comments on pull requests, go to your Netlify site settings. |
✅ [V2]
To edit notification comments on pull requests, go to your Netlify site settings. |
Hey Just learned VoiceOver 101 to test this 😄 What I understand is that before the aria-label would be read again but not on space / enter, but only when pressing voiceover ctrl+opt+space After this change it announce the chance with both space / enter / ctrl+opt+space so it looks better to me 👍 Also reading aria-live docs, that seems like an appropriate usage to me 👍 Thanks |
⚡️ Lighthouse report for the deploy preview of this PR
|
I think there's a remaining issue so re-opened there: #7667 (comment) |
Pre-flight checklist
Motivation
Added
aria-live
attribute that indicates the element will be updated in future. This effectively solves issue as the originalaria-label
is read on every button submission, compared to be read just once as before.Test Plan
Manual testing using VoiceOver screen reader on MacOS.
Test links
Deploy preview: https://deploy-preview-8174--docusaurus-2.netlify.app/
Related issues/PRs
Closes #7667