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

Fixes #3456 - Add aria-labelled-by attributes to wizard step icons #3516

Merged
merged 2 commits into from
Jan 20, 2021

Conversation

miketaylr
Copy link
Member

In theory this should fix #3456, but the devtools accessbility inspector doesn't recognize the aria-labelled-by attribute, but I think that's a bug (I will file one and post a link here).

Screen Shot 2021-01-17 at 2 52 17 PM

We can fix this error by duplicating the description text, but then a screen reader will read it twice, which seems bad.
Screen Shot 2021-01-17 at 2 51 40 PM

@miketaylr miketaylr requested a review from ksy36 January 17, 2021 20:56
@miketaylr
Copy link
Member Author

Copy link
Contributor

@ksy36 ksy36 left a comment

Choose a reason for hiding this comment

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

Thanks for looking into this! Not very familiar with this property, so I looked it up, looks like like it's aria-labelledby="" (without the hyphen), so may be devtools not recognizing it because of the hyphen

@miketaylr
Copy link
Member Author

Thanks for looking into this! Not very familiar with this property, so I looked it up, looks like like it's aria-labelledby="" (without the hyphen), so may be devtools not recognizing it because of the hyphen

Oh yay, thanks for the careful review!

@miketaylr
Copy link
Member Author

Nice, just confirmed it works :)

Screen Shot 2021-01-19 at 9 27 16 AM

@miketaylr
Copy link
Member Author

I guess we can do the same thing with the other icons, so let's not merge this just yet @ksy36 -- I can add that maybe later tonight.

Screen Shot 2021-01-19 at 9 29 16 AM

@miketaylr
Copy link
Member Author

Oh wait, those messages are about interactive semantics, etc. I don't plan on addressing those. We got all the image label issues taken care of.
Screen Shot 2021-01-19 at 7 43 34 PM

r? @ksy36

@karlcow
Copy link
Member

karlcow commented Jan 20, 2021

Thanks!

@karlcow karlcow requested a review from ksy36 January 20, 2021 02:08
Copy link
Contributor

@ksy36 ksy36 left a comment

Choose a reason for hiding this comment

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

Cool, thanks!

@ksy36 ksy36 merged commit 379c56d into master Jan 20, 2021
@ksy36 ksy36 deleted the issues/3456/2 branch January 20, 2021 15:48
@miketaylr
Copy link
Member Author

Thanks all!

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

Successfully merging this pull request may close these issues.

[A11Y] Graphic elements should be labeled
3 participants