Aria is required in the radio group

When I have a required radio group, which element should have the aria-required="true" attribute? Basically, I have a group of <input type="radio"> elements that have the same name and are grouped together under <fieldset> .

  • Should I put aria-required in a <fieldset> ?
  • Should I put aria-required on every radio?
  • Or do you say: “there should not be such a thing as a mandatory group of radio stations, set a default value so that the radio group can never be in the same state”? - Perhaps this is a topic for a separate discussion of usability.
+7
source share
2 answers

As a screen user, I would suggest one or three. I do not want to hear my screen reader declare “required” every time I change the selection on the switch. If Im trying to look at the various options having the “required” advertised on each of them will quickly repeat itself. Id like to have the required attribute in the fieldset element, so I know its section of the form to fill out.

In terms of usability, I prefer to have a default choice, because if I see the default, I usually go to the next section of the form, assuming that the default value is not erroneous. If you are comfortable providing the user with a default choice and not force them to make a choice, this will depend on the importance of the information required by your application and the consequences if this information is incorrect.

+13
source

I tried and found that you cannot add an aria to the fieldset element.

+1
source

All Articles