Change the inserter search results message to polite
#13387
Labels
[Focus] Accessibility (a11y)
Changes that impact accessibility and need corresponding review (e.g. markup changes).
[Type] Enhancement
A suggestion for improvement.
When opening the inserter, the number of initial available results is announced by assistive technologies via a
speak()
message sent to the assertive ARIA live region.The assertive message interrupts what's currently being announced by the screen reader and, with some browser / screen reader combinations, this prevents the search field to be announced correctly.
In my testing, Safari + VoiceOver are affected. To reproduce:
Changing the message from
assertive
topolite
fixes the issue and in my testing doesn't affect other browser / screen reader combos.Worth noting this message is debounced by 500 ms and this might explain the different behavior across different combos. Also, screen readers have different ARIA live implementations. Regardless, it makes sense to let screen readers announce the search field first, and then the number of results.
The text was updated successfully, but these errors were encountered: