Skip to content

Don't flag decorative images with alt="" and role="presentation" for manual alt text check #34

@huubl

Description

@huubl

Currently, the tool adds a "Manual check: image has no alt text" warning for all tags with an empty alt attribute (alt=""). However, when an image is marked with both alt="" and role="presentation" (e.g., <img src="decorative-image.png" alt="" role="presentation">), it is being used as a decorative image and does not require alt text according to accessibility best practices.

Feature Request:

  • Please update the image checking logic to not add a manual alt text check for tags that have both alt="" and role="presentation" attributes.

Benefit:

  • This will reduce unnecessary manual checks and improve accessibility compliance by properly handling decorative images.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions