You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a set of same-named radio buttons is required, we use an indicator in the LEGEND element, and apply the @required attribute to the INPUTs. ARC Toolkit reports an error once for each radio: "aria-required or required attribute on radio button".
To Reproduce
Scan the sample with ARC Toolkit (the radiogroup role on fieldset doesn't seem to make a difference):
ARC Toolkit should accept the above markup for required radio button sets.
Screenshots
These indicate how other tools handle the sample:
Firefox appears to correctly pick up the required state:
Version information
Browser and version: Chrome 113.0.5672.92 (on OSX 13.3.1)
ARC Toolkit version: 5.5.3
Additional context
The following resources appear to support the markup we're using. I haven't found any references which would indicate that we're going against the spec in some way.
To avoid confusion as to whether a radio button group is required or not, authors are encouraged to specify the attribute on all the radio buttons in a group. Indeed, in general, authors are encouraged to avoid having radio button groups that do not have any initially checked controls in the first place, as this is a state that the user cannot return to, and is therefore generally considered a poor user interface.
Describe the bug
When a set of same-named radio buttons is required, we use an indicator in the LEGEND element, and apply the @required attribute to the INPUTs. ARC Toolkit reports an error once for each radio: "aria-required or required attribute on radio button".
To Reproduce
Scan the sample with ARC Toolkit (the radiogroup role on fieldset doesn't seem to make a difference):
Expected behavior
ARC Toolkit should accept the above markup for required radio button sets.
Screenshots
These indicate how other tools handle the sample:
Firefox appears to correctly pick up the required state:
Version information
Additional context
The following resources appear to support the markup we're using. I haven't found any references which would indicate that we're going against the spec in some way.
https://html.spec.whatwg.org/multipage/input.html#radio-button-state-(type=radio)
https://html.spec.whatwg.org/multipage/input.html#concept-input-required
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/radio
The text was updated successfully, but these errors were encountered: