-
Notifications
You must be signed in to change notification settings - Fork 286
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
Allow empty alt text on the Image component #623
Comments
Sounds reasonable to me |
For presentational images, it's important to set |
That's a great suggestion, thanks! |
Having both IMO the best solution is to default |
Based on my experience, MacOS's screen reader will still read out the presence of an image with empty alt text, unless you set another attribute to remove it from the accessibility tree (e.g. |
This video demonstrates how an image with empty alt attribute gets skipped by VoiceOver. Are you sure it's different for your version? @davidhousedev See this StackOverflow thread.
Also found this W3C page on decorative images.
I guess I'd rather not be forced to use |
Cool! I didn't realize that VO behaved differently on an image without As someone who has worked pretty hard to bring a11y into my organization, this is now super clear to me. However, I'd be concerned about Respectfully, I don't share your concern about needing to set either All that said, I defer to the core team here, we'd be happy to adopt whatever convention is supported by the framework 👍🏻 |
Describe the bug
The
Image
component currently throws warnings when there is no alt text. Sometimes, for presentational images, there should not be alt text. Should an explicit empty string passed as a prop avoid the warning? cc @WillsonSmithThe text was updated successfully, but these errors were encountered: