conform icon indicating copy to clipboard operation
conform copied to clipboard

A11y: getFormProps and getFieldsetProps should not return aria-invalid

Open evaogbe opened this issue 6 months ago • 1 comments

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

  1. Call the getFormProps or getFieldsetProps function
  2. 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

evaogbe avatar Jun 10 '25 14:06 evaogbe

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.

edmundhung avatar Jun 13 '25 22:06 edmundhung