-
Notifications
You must be signed in to change notification settings - Fork 799
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: make img alt attribute empty #1860
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/carbon-design-system/carbondesignsystem/1heb77bf5 |
correct me if I'm wrong, but I think IMO this is some constraint on |
@Kleyu nice catch! You are correct, seems like this is currently not possible (passing in an Issue: gatsbyjs/gatsby#20179 |
Okay, then let me fix that issue at first 🙃 |
the keyword GATSBY_EMPTY_ALT is used to generate an img tag with empty alt attribute
so that the fix for creating empty alt attribute can be used
@tw15egan thanks for approving. The fix PR gatsbyjs/gatsby#27218 is already merged. When the new version 3.3.33 is published, then this PR is ready to be merged as well. |
(I'm maintainer of |
@tw15egan since the new version 3.3.33 is already published (gatsbyjs/gatsby#27218 (comment)), this PR is ready to be merged :) |
@motou yay! 🥳 thanks for the contribution! |
* fix: make img alt attribute empty * fix: use GATSBY_EMPTY_ALT keyword the keyword GATSBY_EMPTY_ALT is used to generate an img tag with empty alt attribute * chore: update gatsby-remark-images version so that the fix for creating empty alt attribute can be used
* fix: make img alt attribute empty * fix: use GATSBY_EMPTY_ALT keyword the keyword GATSBY_EMPTY_ALT is used to generate an img tag with empty alt attribute * chore: update gatsby-remark-images version so that the fix for creating empty alt attribute can be used
Closes #1819
set the image alt attribute empty so that screen reader won't annonce the text twice.
Changelog
Changed
See: https://www.gatsbyjs.com/plugins/gatsby-remark-images/?=gatsby-remark#usage-in-markdown