SonarQube Enterprise Edition v10.6 (92116)
In my vue component I have a fieldset marked with the radiogroup role:
<fieldset
role="radiogroup"
:aria-required="props.required"
:aria-invalid="validation?.type === 'error'"
:aria-errormessage="`${id}-errormessage`"
>
This triggers a warning of type: Non-interactive elements should not be assigned interactive roles. (Web:S6842)
I believe this to be a false positive.
First, https://w3c.github.io/html-aria/#docconformance explicitly mentions radiogroup to be one of the few allowed roles of a fieldset.
https://www.w3.org/TR/WCAG20-TECHS/ARIA17 also has several examples of using “radiogroup” on a non-interactive element.
Another example can be found in ARIA: radiogroup role - Accessibility | MDN .
The idea of a radiogroup is to group several radio items from which only one can be selected. Making the radiogroup interactive is not necessary for that.