How to use WAI-ARIA roles correctly

Oscar de la Hera Gomez
Two flowers that represent ReactJS and GatsbyJS with the text "WAI-ARIA Roles" beneath them.

Use the official WAI ARIA roles defined in the World Wide Consortium (W3C) Accessible Rich Internet Applications (WAI-ARIA) 1.1 specification.

We would like to thank Pelayo Trives Pozuelo for providing us with the official W3C specification.

When developing delasign.com, PageSpeed Insights alerted us that we were not using the correct ARIA roles across the delasign.com website.

A screenshot of PageSpeed Insights showing that we were not using the WAI ARIA roles correctly.

PageSpeed Insights gave us a warning that we weren't using roles correctly.

This is because we thought we could name HTML elements using natural language that directly implied their role in the delasign.com website - this is wrong.

A screenshot of the World Wide Consortium (W3C) Accessible Rich Internet Applications (WAI-ARIA) 1.1 specification that shows the WAI ARIA Role descriptions.

Some of the official WAI ARIA roles defined in the World Wide Consortium (W3C) Accessible Rich Internet Applications (WAI-ARIA) 1.1 specification.

To fix this, we used the official WAI ARIA roles defined in the World Wide Consortium (W3C) Accessible Rich Internet Applications (WAI-ARIA) 1.1 specification.

Please note that WAI ARIA roles are built into React & Typescript and are known as "React.AriaRole."

Looking to learn more about ReactJS and SEO ?

Search our blog to find educational content on learning ReactJS and SEO.

Any Questions?

We are actively looking for feedback on how to improve this resource. Please send us a note to inquiries@delasign.com with any thoughts or feedback you may have.
delasign logo

Book a Free Consultation.

An icon of an email.

Click here to email us.

Fill in the details below to book a free consultation or to let us know about something else. Whatever it is, we are here to help.

How can we help you ?

Contact Details