WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: is grouping checkboxes using radiogrouppermisible?

for

From: Mark Magennis
Date: Jul 7, 2022 1:35AM


I'm still not sure I get it Birkir. The checkboxes are only of interest when you select Yes so if you select the No radio button it doesn't seem to be important to know that the checkboxes were there when Yes was selected but are no longer there. They're simply not relevant to you. And I don't see why it would be important, or even helpful, to tell the user in advance that if they select Yes some more checkboxes will appear. If they do select Yes then they the checkboxes will be the next question they come across, in the same way that if they had selected No the next question would be a different one. Am I missing something in the experience?

-----Original Message-----
From: WebAIM-Forum < <EMAIL REMOVED> > On Behalf Of Birkir R. Gunnarsson
Sent: 06 July 2022 19:28
To: WebAIM Discussion List < <EMAIL REMOVED> >
Subject: Re: [WebAIM] [EXTERNAL] Re: is grouping checkboxes using radiogroup permisible?

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.
> > > archives at http://webaim.org/discussion/archives
> > > > archives at http://webaim.org/discussion/archives
> >


--
Work hard. Have fun. Make history.