Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct information on aria-live="off", expand initial Note #32989

Merged
merged 1 commit into from
Apr 8, 2024

Conversation

patrickhlauke
Copy link
Contributor

Description

Expand the initial note, to make it clearer that authors should really have an empty container first, and then inject a message into it.
It also gives a nod to the slightly "magic" behavior that browsers/screen readers have when it comes to role="alert".

This also corrects the current error regarding aria-live="off" - see w3c/aria#2144 for a clarification on aria-live="off" ... it doesn't mean "don't announce changes", but rather "announce them only when focus is on the element"

Motivation

Expanding the note helps further clarify how to use live regions.

Correcting the aria-live="off" problem ... well ... corrects a common misconception/problem (caused by the spec using an unintuitive value, which hopefully will be addressed at spec level soon)

Additional details

w3c/aria#2144

Related issues and pull requests

See w3c/aria#2144 for a clarification on `aria-live="off"` - that it doesn't mean "don't announce changes", but rather "announce them only when focus is on the element"
@patrickhlauke patrickhlauke requested a review from a team as a code owner April 7, 2024 15:43
@patrickhlauke patrickhlauke requested review from scottaohara and removed request for a team April 7, 2024 15:43
@github-actions github-actions bot added Content:Accessibility Accessibility docs size/s [PR only] 6-50 LoC changed labels Apr 7, 2024
Copy link
Contributor

github-actions bot commented Apr 7, 2024

Copy link
Member

@estelle estelle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! 🎉

@estelle estelle merged commit 364a98c into mdn:main Apr 8, 2024
8 checks passed
@patrickhlauke patrickhlauke deleted the patch-1 branch April 8, 2024 20:41
@patrickhlauke
Copy link
Contributor Author

Wonderful. For the audience at home, the change is now live on https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Live_Regions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Content:Accessibility Accessibility docs size/s [PR only] 6-50 LoC changed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants