scniro / react-codemirror2

Codemirror integrated components for React
MIT License
1.66k stars 193 forks source link

Accessibility improvement for <textarea> form control element #304

Open sara-akhtar opened 1 year ago

sara-akhtar commented 1 year ago

There's an issue that's impacting multiple components in our application. The <textarea> element has no associated label which doesn't allow the browser to announce the control to a user that may need it.

Recommendations on fixes:

Screenshot 2023-03-09 at 2 00 44 PM

Screenshot 2023-03-09 at 2 04 24 PM

sara-akhtar commented 1 year ago

@scniro any updates on this bug?

alestrunda commented 8 months ago

By default, there is no label, but you can set it in the options as screenReaderLabel - will set it as aria-label.