cschroeter / park-ui

Beautifully designed components built with Ark UI and Panda CSS that work with a variety of JS frameworks.
https://park-ui.com
MIT License
1.75k stars 75 forks source link

Should FieldSet/Field.HelperText use aria-describedby? #471

Open Southclaws opened 1 week ago

Southclaws commented 1 week ago

I was looking at FieldSet/Field for some form controls I'm building which have two-tier labels, one for the name of the field (a short, one or two word label) and then a longer description that explains the functionality in greater detail. My understanding of ARIA approaches for these kinds of form fields is that the input element holds both an ID for the htmlFor and then an aria-describedby which points to the longer description. This results in screen-readers reading both (first the label, then a short pause, then the longer description)

Has this been considered for Field.HelperText, would it make sense? Thanks!