Skip to content

Add role attribute if en__errorList is not empty#333

Merged
fernanDOTdo merged 1 commit into
mainfrom
error-aria
Aug 7, 2025
Merged

Add role attribute if en__errorList is not empty#333
fernanDOTdo merged 1 commit into
mainfrom
error-aria

Conversation

@BrewGuy

@BrewGuy BrewGuy commented Jun 11, 2025

Copy link
Copy Markdown
Contributor

This addition to the a11y component will dynamically add or remove the "role" attribute on en__errorList, depending on whether there is content in it. This addresses Lighthouse flagging an error when the attribute is there and en__errorlist is empty (#332).

@fernanDOTdo
fernanDOTdo merged commit 6bfdc03 into main Aug 7, 2025
2 checks passed
@fernanDOTdo
fernanDOTdo deleted the error-aria branch August 7, 2025 02:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants