← Back to context

Comment by skeeter2020

3 days ago

MDN has decent docs on this, including (and echoed by the author) this top-level guidance:

>> The first rule of ARIA use is "If you can use a native HTML element or attribute with the semantics and behavior you require already built in, instead of re-purposing an element and adding an ARIA role, state or property to make it accessible, then do so."

https://developer.mozilla.org/en-US/docs/Web/Accessibility/A...

The top of a lot of the ARIA docs pages say "No ARIA is better than bad ARIA"

  • I really like (not) when people read about accessibility and the first thing they decide to do is adding keydown handlers on all the buttons that have clicks handlers. Like, please, treat it like the rest of UX and design for it, instead of going with a checklist over all the places linter flagged.