-
Notifications
You must be signed in to change notification settings - Fork 10.3k
docs: add missing word for alt tag #28873
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
Conversation
|
should and info added about an empty By default, the text `my awesome image` will be used as
-the alt attribute of the generated `img` tag.
+the alt attribute of the generated `img` tag if it is empty: ``there are 3 possible situations  => alt="Alt text here"
 => alt="my awesome image"
 => alt="" |
|
Hi! The changes you made are incorrect. You can check this with the tests: gatsby/packages/gatsby-remark-images/src/__tests__/index.js Lines 675 to 711 in ef12dca
This here means: gatsby/packages/gatsby-remark-images/src/index.js Lines 174 to 178 in ef12dca
|
|
yes - you are right |
Description
changed:
because the default alt description is generated from file name (
defaultAlt):gatsby/packages/gatsby-remark-images/src/index.js
Lines 167 to 178 in 3d100e3
Documentation
Related Issues
fix(gatsby-remark-images): enable creating img tag with empty alt attribute