gaurav5430
gaurav5430

Reputation: 13902

aria-* attributes are not valid or misspelled

I was generally testing Accessibility of a website using Lighthouse in Chrome Audits.

I stumbled upon this warning:

aria-* attributes are not valid or misspelled.

this is the failing element:

<a class="issue-title muted-link" href="#" data-bi-name="issue-expander" aria-role="button" aria-expanded="false" aria-controls="issue-26732-body issue-26732-comments issue-26732-reactions issue-26732-reactions-menu" aria-label="Toggle issue">

This is the link in case anyone is interested. Azure load balancer Feedback Section

To me it seems like the aria-* names and values are valid.

What can be the reason for this to fail ?

Upvotes: 4

Views: 4292

Answers (1)

Tsundoku
Tsundoku

Reputation: 2707

The correct spelling is not aria-role but role. See also the ARIA Role Attribute in HTML5.2.

aria-expanded, aria-controls and aria-label are correct.

I admit that the error message could have been clearer, e.g. by pointing out that aria-role is not valid.

Upvotes: 5

Related Questions