WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Styling Radio elements to look like Button element?

for

From: Bryan Garaventa
Date: Nov 1, 2014 12:06PM


Just a quick note, it's the checked state you want to convey with radios, not selected. This is often misimplemented for ARIA roles
such as 'radio', where aria-selected is used instead of aria-checked, which is what it should be. The use of aria-selected is not
valid on role=radio.

Live demo:
http://whatsock.com/tsg/Coding%20Arena/ARIA%20Radio%20Buttons/ARIA%20Radio%20Buttons/demo.htm