thlorenz / brace

📔 browserify compatible version of the ace editor.
http://thlorenz.github.io/brace/
MIT License
1.06k stars 304 forks source link

Accessibility: Add role=log attribute to autocomplete popup. #1777 #193

Open abaransy opened 1 year ago

abaransy commented 1 year ago

[Problem] Autocomplete suggestions (that become available in the autocomplete popup when a user types anything in) are not announced to users with screen readers.

Screen reader users will be unaware of important updates to this content when they occur.

[Recommendation] Indicate live regions for dynamically changing content. Live regions can be created by adding a role attribute set to "log", "status", "alert", "progressbar", "marquee", or "timer" as appropriate.

Literally all that needs to be done is to add role="log" to the autocomplete popup container. Can you please add it?

See relevant example in https://www.w3.org/WAI/WCAG21/Techniques/aria/ARIA23 under "Example 1: Updating the contents of a chat conversation"Accessibility: Add role=log attribute to autocomplete popup. #1777