-
-
Notifications
You must be signed in to change notification settings - Fork 8.9k
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): light & dark mode checkbox doesn't announce state switches #10585
Conversation
Hi @andrewasche! Thank you for your pull request and welcome to our community. Action RequiredIn order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you. ProcessIn order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA. Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with If you have received this in error or have any questions, please contact us at cla@meta.com. Thanks! |
✅ [V2]Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site configuration. |
⚡️ Lighthouse report for the deploy preview of this PR
|
I have completed the Contributor License Agreement after the workflow run into that issue. I couldn't figure out dogfooding either. |
LGTM thanks Apparently it's not really "needed" considering the aria-label is dynamic, but it also doesn't harm so let's merge it |
In #10987 we are introducing a 3rd state to that button, with the ability to revert to system/os theme color mode. I'll have to remove this Also i don't think we should have used it in the first place, it seems it leads VoiceOver to announce multiple times, see #7667 (comment) https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Attributes/aria-pressed
Since we are changing the icon, I believe it falls into that case, and we shouldn't use |
Pre-flight checklist
Motivation
Test Plan
yarn start
open webpage and use nvda to test that the aria-pressed is saying if the button is pressed or if the button is not pressed
Test links
https://deploy-preview-10585--docusaurus-2.netlify.app/