Skip to content
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(toggle): allow screen readers to announce labels #2819

Conversation

emyarod
Copy link
Member

@emyarod emyarod commented May 23, 2019

Closes #2809

This PR removes the aria-hidden attributes from the toggle components to allow screen readers to announce toggle labels

@netlify
Copy link

netlify bot commented May 23, 2019

Deploy preview for the-carbon-components ready!

Built with commit 57f1a9c

https://deploy-preview-2819--the-carbon-components.netlify.com

@netlify
Copy link

netlify bot commented May 23, 2019

Deploy preview for carbon-components-react ready!

Built with commit 57f1a9c

https://deploy-preview-2819--carbon-components-react.netlify.com

@asudoh
Copy link
Contributor

asudoh commented May 23, 2019

@carmacleod had requested letting screen reader not read on/off text, in #1794. Wanted to see if it's still the case.

@emyarod
Copy link
Member Author

emyarod commented May 23, 2019

it seems we have conflicting feedback again, would be great if we can clear up the confusion and determine how to proceed

@emyarod
Copy link
Member Author

emyarod commented May 24, 2019

@asudoh looks like #1794 is asking for modifying the aria attribute based on toggle state. do we want to keep our vanilla toggles usable without JS or should I implement this behavior?

@carmacleod
Copy link
Contributor

carmacleod commented May 24, 2019

Please don't put this in yet, or change it based on state. I'm adding a comment to #2809 to explain.

@emyarod emyarod force-pushed the 2809-voiceover-does-not-announce-toggle-labels branch from 2f62f6a to e8d2c35 Compare May 28, 2019 15:30
@emyarod emyarod removed this from the v10.3 milestone May 28, 2019
@emyarod emyarod force-pushed the 2809-voiceover-does-not-announce-toggle-labels branch from e8d2c35 to 061a2c9 Compare May 30, 2019 14:02
@emyarod emyarod closed this May 30, 2019
@emyarod emyarod deleted the 2809-voiceover-does-not-announce-toggle-labels branch May 30, 2019 16:54
@emyarod
Copy link
Member Author

emyarod commented May 30, 2019

superseded by #2885

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

AVT 3 - React & Vanilla Toggle Component: VoiceOver does not announce labels
4 participants