Availity / availity-reactstrap-validation

Easy to use React validation components compatible for reactstrap.
https://availity.github.io/availity-reactstrap-validation/
MIT License
191 stars 70 forks source link

aria- Markup not applying #158

Closed silverstarfyus closed 4 years ago

silverstarfyus commented 4 years ago

Is there a specific way that ARIA additions have to be used with this library? I'm specifically trying to apply it to a and no REACT syntax or basic html syntax is working

TheSharpieOne commented 4 years ago

you can pass any additional attributes to the components and they will be passed through to the DOM. Notice how the first input in this example has aria-required: https://stackblitz.com/edit/reactstrap-validation-v2-6z7h32?file=Example.js

Also note that aria-required is not really needed when the HTML5 required attribute is present. https://stackoverflow.com/a/37975985/1873485 https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Techniques/Using_the_aria-required_attribute