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

Live Regions accessibility considerations #11863

Open
Malvoz opened this issue Jan 9, 2022 · 1 comment
Open

Live Regions accessibility considerations #11863

Malvoz opened this issue Jan 9, 2022 · 1 comment
Labels
Content:Accessibility Accessibility docs effort: medium This task is a medium effort. help wanted If you know something about this topic, we would love your help!

Comments

@Malvoz
Copy link
Contributor

Malvoz commented Jan 9, 2022

URL: https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Live_Regions

This is a suggestion to potentially add an "Accessibility considerations" section to make authors aware of the following caveats when using Live Regions:

  1. HTML semantics are (usually) not conveyed in Live Regions (authors should be mindful of this)

    Screen readers announce live regions by taking their child content and announcing it as a single text string. This means that if there are any links, buttons, or other elements with semantics that are typically exposed by screen readers, that information will not be conveyed in the live announcement. That’s not to say that, if navigated to, the elements won’t expose themselves as expected.

    https://www.scottohara.me/blog/2019/07/10/the-output-element.html

  2. The Live Region element (<output>, role="status|alert" etc, aria-live) should be included in the initial markup

    Assistive technology will initially scan the document for instances of the aria-live attribute and keep track of elements that include it. This means that, if we want to notify users of a change within an element, we need to include the attribute in the original markup. In other words, we should not use Javascript to add the aria-live attribute to elements dynamically.

    https://bitsofco.de/using-aria-live/#considerationswhenusingarialive

@github-actions github-actions bot added the needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. label Jan 9, 2022
@Malvoz
Copy link
Contributor Author

Malvoz commented Jan 9, 2022

It'd be ideal if this would be reflected under https://developer.mozilla.org/en-US/docs/Web/HTML/Element/output#accessibility_concerns as well.

@sideshowbarker sideshowbarker added Content:Accessibility Accessibility docs help wanted If you know something about this topic, we would love your help! needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. effort: small This task is a small effort. effort: medium This task is a medium effort. and removed needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. effort: small This task is a small effort. labels Jan 10, 2022
@estelle estelle self-assigned this Jan 11, 2022
@estelle estelle removed their assignment May 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Content:Accessibility Accessibility docs effort: medium This task is a medium effort. help wanted If you know something about this topic, we would love your help!
3 participants