-
Notifications
You must be signed in to change notification settings - Fork 4.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
Gallery block: Remove the arbitrary alt text that is added to gallery images #35936
Conversation
Size Change: -17 B (0%) Total Size: 1.07 MB
ℹ️ View Unchanged
|
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 tests well for me.
✅ v1 version of the block is unaffected
✅ An existing image-block based gallery that already has the "Image gallery image" alt text is unaffected after reloading and updating the post (so no block validation issues occur, and the alt text can be updated manually by clicking on the image block)
✅ Inserting a new gallery block with this PR applied, the alt text correctly gets picked up if it's set for the image in the media library, and the alt
attribute is otherwise empty both within the editor and on the front end of the site. Setting the alt
text manually within the image block in the editor still works as before
LGTM!
from accessibility standpoint, looks good to me; the arbitrary "image gallery image" is not helpful at all for accessibility; thanks for implementing. |
Description
Removes the default alt text that is being added to gallery images with no alt text set based on this accessibility discussion, and this comment.
Testing