DEV Community

Discussion on: An Introduction to ARIA States

Collapse
 
elliot profile image
Elliot • Edited

This is my first time hearing the idea of styling by using ARIA attributes in the CSS. Forces you to be on top of accessibility, forcing you to even think about it when styling.

Nice article :) I'm interested in reading more in this series.

Collapse
 
lkopacz profile image
Lindsey Kopacz

I actually got the idea from! They had a very good point!

However, it is my personal preference using classes for styling and not attributes.

One of the wins of using ARIA attributes to style interactive components like this is that the component will never work without the ARIA changes baked in. This may not matter in very small teams or teams where there is across-the-board knowledge about accessibility, but for all other cases, I would highly recommend using the ARIA attributes in the CSS, too.

This was a great post, btw!