bootstrap-ruby / bootstrap_form

Official repository of the bootstrap_form gem, a Rails form builder that makes it super easy to create beautiful-looking forms using Bootstrap 5.
MIT License
1.64k stars 352 forks source link

Remove aria-required attribute from semantic element `input` #695

Closed jdufresne closed 10 months ago

jdufresne commented 10 months ago

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.

https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-required

When a semantic HTML ,