-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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(gatsby-remark-images): enable creating img tag with empty alt attribute #27218
Conversation
Currently EMPTY_ALT is defined as _SKIP_
The My proposal would be something like Other than that - do you think you could add some tests for this behaviour? I realize we don't really have
for few scenarios we already have:
that can be added to https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby-remark-images/src/__tests__/index.js will go long way in assuring we don't regress in future |
Hi @pieh thanks for reviewing and providing feedbacks! I like the idea of the gatsby special tag and will adopt them in the PR. Tests will be not ignored ;) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is perfect, thank you!
Cool, thanks for merging. When is the new version 3.3.33 available? ;) |
Thanks, everyone for fixing this upstream so quickly 🙏 ❤️ |
Published in |
…ribute (gatsbyjs#27218) * fix: define a new constant for empty alt * fix: generate empty alt attribute for EMPTY_ALT Currently EMPTY_ALT is defined as _SKIP_ * chore: prettifier the codes * chore: add documentation * chore: add keyword description in README * fix: incorprate review comments * fix: add more unit tests * fix: fix unit test error Co-authored-by: Zhen Wang <[email protected]>
Description
add a keyword
GATSBY_EMPTY_ALT
to enable that an img tag with an empty alt attribute can be createdDocumentation
add the keyword description @gatsbyjs/documentation
Related Issues
Fixes #20179