conform
conform copied to clipboard
A11y: getFormProps and getFieldsetProps should not return aria-invalid
Describe the bug and the expected behavior
aria-invalid is supposed to be set primarily on form controls. The applicable roles for aria-invalid do not include form or group (fieldset). Returning aria-invalid in getFormProps and getFieldsetProps is incorrect
Conform version
1.6.0
Steps to Reproduce the Bug or Issue
- Call the getFormProps or getFieldsetProps function
- Observe the return value
What browsers are you seeing the problem on?
No response
Screenshots or Videos
No response
Additional context
I can send a PR if that helps
Thanks for the heads up and for offering to jump in @evaogbe! PRs are always welcome. Let me know if you need anything from me.