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 10:58AM


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
> > > > >


--
Work hard. Have fun. Make history.