WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: is grouping checkboxes using radiogroup permisible?

for

From: Birkir R. Gunnarsson
Date: Jul 6, 2022 12:28PM


Yes, pressing the arrow keys to navigate between the radiobuttons will
skip right past the checkboxes (and make them disappear if you switch
from "yes" to "no").
At least I would warn the screen reader user that selecting "yes"
result in additional checkboxes being displayed between the yes and no
radio buttons.

With a sufficient warning this is ok, but it is a confusing situation
when the experience is linearized.

On 7/6/22, Mark Magennis < <EMAIL REMOVED> > wrote:
> HI Birkir. I imagined that David was probably envisaging placing the
> checkboxes immediately between the yes and no radio buttons which would be a
> logical design visually. But what potential confusion do you think this
> could cause? Is it that it might be difficult to keep track of where you are
> in the nesting?
>
> Mark
>
> -----Original Message-----
> From: WebAIM-Forum < <EMAIL REMOVED> > On Behalf Of
> Birkir R. Gunnarsson
> Sent: 06 July 2022 17:59
> To: WebAIM Discussion List < <EMAIL REMOVED> >
> Subject: [EXTERNAL] Re: [WebAIM] is grouping checkboxes using radiogroup
> permisible?
>
> You can have nested fieldset elements, yes.
> You can even group the checkboxes in a fieldset and add
> aria-label="something descriptive as a group label" if you don't need a
> nested <legend> with visible text.
> Just make sure that group comes after the radio buttons, not between the yes
> and the no, in content/focus order, it could potentially create a lot of
> confusion.
>
>
>
> On 7/6/22, David Farough < <EMAIL REMOVED> > wrote:
>> We have the following situation:
>> In a user profile, we have a group of radiobuttons which asks whether
>> you are part of an employment equity group.
>> Options are yes, No and prefer not to say.
>> If yes is chosen a list of possible options (Checkboxes is displayed.
>> Would using the radiogroup with the checkboxes be a good option to
>> handle this in order to minimize the repetition of the group label?
>> Is there a better solution?
>> Thanks
>> >> >> archives at http://webaim.org/discussion/archives
>> >>
>
>
> --
> Work hard. Have fun. Make history.
> > > http://webaim.org/discussion/archives
> > > > > >


--
Work hard. Have fun. Make history.