WebAIM - Web Accessibility In Mind

E-mail List Archives

Thread: Do accessibility tools treat 'group' and 'radiogroup' differently?

for

Number of posts in this thread: 2 (In chronological order)

From: H S
Date: Tue, Jul 16 2024 7:19AM
Subject: Do accessibility tools treat 'group' and 'radiogroup' differently?
No previous message | Next message →

Is there a distinction between 'group' and 'radiogroup' for accessibility
tools?

From: Birkir R. Gunnarsson
Date: Tue, Jul 16 2024 7:31AM
Subject: Re: Do accessibility tools treat 'group' and 'radiogroup' differently?
← Previous message | No next message

The radiogroup role is reserved for radio buttons only.
You can use the aria-required attribute on an element with
role="radiogroup", meaning you have to select one radio button from the
group.

The group role is more generic in nature and marks a group of form
controls (likely grouped because they have a common group label).
These can be checkboxes or radio buttons or text input or whatever.
The aria-required attribute is not allowed on a group role because its
meaning is not clear.


On Tue, Jul 16, 2024 at 9:19 AM H S < = EMAIL ADDRESS REMOVED = > wrote:

> Is there a distinction between 'group' and 'radiogroup' for accessibility
> tools?
> > > > >


--
Work hard. Have fun. Make history.