WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Radio buttons using input tag, or aria radiogroup role?

for

From: AutoMagicMike
Date: Apr 26, 2017 4:51PM


Hi everyone
Thanks for all your answers

If anyone has examples of the types of styling issues / work workarounds
they have had with
radio buttons that would be really useful.
Do you think those issues are are "bugs" which browser vendors should
correct in the future versions.

Going the CSS route requires scripting to replicate native functionality.
That will require effort to build and then test on a number of different
platforms.
Are there any open sourced standard scripts out there that people have used.

Just looking through the Aria Spec again at:
https://www.w3.org/TR/aria-in-html/#rule1

Rule 1: 2.1 First rule of ARIA use
If you can use a native HTML element [HTML51] or attribute with the
semantics and behaviour 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.

So unless there are styling issues Native Semantic HTML might be the way to
go.

Thanks for your help everyone

Mike