Skip to content
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

[Accessibility support] - Empty alt attribute is now consistently supported #2274

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

giacomo-petri
Copy link
Collaborator

@giacomo-petri giacomo-petri commented Feb 6, 2025

Closes: #2273

Description:

I've removed the following accessibility support note from Image has non-empty accessible name - 23a2a8

There are several popular browsers that do not treat images with an empty alt attribute (alt="") as having a role of presentation but instead add the img element to the accessibility tree with a semantic role of either img or graphic.

Since it's quite few years this is no longer true.

Need for Call for Review:

This will require a 2 weeks Call for Review

…ifferent ways - I hasn't been true for several years
@giacomo-petri giacomo-petri added the accessibility support Accessibility support testing and tracking label Feb 6, 2025
@@ -55,7 +55,6 @@ There are no assumptions.

### Accessibility Support

- There are several popular browsers that do not treat images with an empty `alt` attribute (`alt=""`) as having a role of `presentation` but instead add the `img` element to the accessibility tree with a [semantic role][] of either `img` or `graphic`.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This has been very well supported across multiple AT/browser combinations since 2014:
https://www.powermapper.com/tests/screen-readers/labelling/img-null-alt/

@daniel-montalvo
Copy link
Collaborator

We're saying above "This can be merged with 1 approval". But our checks do require three approvals, and this is a change to a rule.

I think three approvals still required here ...

Copy link
Collaborator

@daniel-montalvo daniel-montalvo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving! thanks!

@daniel-montalvo daniel-montalvo changed the title [Accessibility support] - Empty alt attribute is no consistently supported [Accessibility support] - Empty alt attribute is now consistently supported Feb 7, 2025
@giacomo-petri
Copy link
Collaborator Author

Edited the description! Thanks for the catch

@giacomo-petri
Copy link
Collaborator Author

Call for review ends on February 28th 2025.

@giacomo-petri giacomo-petri added Review call 2 weeks Call for review for new rules and big changes and removed reviewers wanted labels Feb 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accessibility support Accessibility support testing and tracking Review call 2 weeks Call for review for new rules and big changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Empty alt attribute is not consistently supported - No longer true
5 participants