WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: is grouping checkboxes using radiogroup permisible?

for

From: Mark Magennis
Date: Jul 6, 2022 11:14AM


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.