WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: is grouping checkboxes using radiogroup permisible?

for

From: Birkir R. Gunnarsson
Date: Jul 7, 2022 7:25PM


This is why I campaigned hard for allowing aria-expanded attribute on
checkboxes and radio buttons back in my ARIA working group days, my
proposal was overturned, without a good explanation.
Here's another screen reader scenario, which is at least plausible if
not likely.
Screen reader typically switch to auto forms mode when they hit radio
buttons (i.e. arrow key presses are passed to the browser), for
checkboxes they typically do not.
Scenario, user selects "yes"
Now user tabs to the checkbox group (screen reader switches to browse mode)
User uses arrow keys to navigate the checkbox group, spacebar to
select desired options.]Last Pressing arrow down from the last
checkbox gets the user to the "no" radio button, screen reader
switches back into forms mode.
Now if user is not careful they will press arrow down again and hit
the "I don't know" button.
Unless the browser remembers which checkboxes were checked, now the
user has lost that information by accident and has to repeat.
It's not a guarnteed scenario but realistic.
There is one good news .. you can likely use the aria-owns attribute
to hack the screen reader content order so that the checkbox group is
presented after the radio buttons in screen reader content order.
It's a bit messy and may not work with all combinations, butit could be done.
Or, you know, just warn a screen reader user about the setup with a
line of text attached to the yes radio button, it would be sufficient.

On 7/7/22, glen walker < <EMAIL REMOVED> > wrote:
> Well said, Brooks.
>
>
> On Thu, Jul 7, 2022 at 9:05 AM Brooks Newton < <EMAIL REMOVED> >
> wrote:
>
>>
>> What is the expected user experience when an assistive technology user
>> encounters a radio group?
>>
>>
>>
> > > > >


--
Work hard. Have fun. Make history.