Skip to content

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

### 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
@netlify
Copy link

netlify bot commented Mar 17, 2025

Deploy Preview for act-rules ready!

Name Link
🔨 Latest commit 234ea3c
🔍 Latest deploy log https://app.netlify.com/sites/act-rules/deploys/67d82f2813ec340008e5a485
😎 Deploy Preview https://deploy-preview-2274--act-rules.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@giacomo-petri
Copy link
Collaborator Author

This is ready to be merged

@carlosapaduarte carlosapaduarte merged commit 022c766 into develop Apr 22, 2025
6 checks passed
@carlosapaduarte carlosapaduarte deleted the giacomo-petri-patch-23a2a8-accsupport-1 branch April 22, 2025 08:08
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

7 participants