Per the MDN docs, the aria-required attribute is only necessary on non-semantic elements. The input element is a semantic element and so aria-required is not necessary -- just required is sufficient and achieves the same result. An example of a non-semantic element is div which is not used by the project.
When form controls are created using non-semantic elements, such as a
with a role of checkbox, the aria-required attribute should be
included, with a value of true, to indicate to assistive technologies
that user input is required on the element for the form to be
submittable.
By removing the unnecessary attribute, there is less noise in the rendered HTML and less total HTML.
Per the MDN docs, the aria-required attribute is only necessary on non-semantic elements. The
input
element is a semantic element and so aria-required is not necessary -- justrequired
is sufficient and achieves the same result. An example of a non-semantic element isdiv
which is not used by the project.https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-required
This looks OK.