Loader - Indicate live regions for dynamically changing content - (2036570575) 2 of 2 #6534
Labels
4 - verified
Issues that have been released and confirmed resolved.
a11y
Issues related to Accessibility fixes or improvements.
bug
Bug reports for broken functionality. Issues should include a reproduction of the bug.
c-loader
Issues that pertain to the calcite-loader component
estimate - 5
A few days of work, definitely requires updates to tests.
Milestone
Module:
20a Loader - Spurred from #5587
Violation:
Indicate live regions for dynamically changing content
WCAG Reference:
Instance ID:
2036570575
Severity:
9
Description:
[Pattern: ARIA live region - Missing for loading indicator]
[Issue]
The loading indicator is not announced for screen reader users. Even though the role=progressbar is provided the loading message is not announced
Occurrences
Ensure all the following components are met when providing context through an
aria-live
region.In 5587:
- [ ] 20a Loader- [ ] 23a Panel- [ ] 25b ScrimHanded in this issue:
[User Impact]
Screen reader users will be unaware when the page is in a loading state.
[Code Reference]
Note:
[Suggestion]
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. Alternatively, custom behavior can be created by using the aria-live, aria-atomic, and aria-relevant attributes. Text injected into this live region element will be announced by screen readers.
Importantly, the element with the ARIA live attributes must be available when the page loads. Otherwise, many screen readers will not detect updates to the element. Additionally, the element must be empty on page load unless an immediate screen reader announcement is desired.
To create such a region:
<div>
or<span>
is present when the page loads. - Add aria-live="polite" attribute to this<div>
or<span>
<div aria-live="polite">
that describes the loading behavior (e.g., "Loading").[Compliant Code Example]
Media Type:
Live Regions
Additional Resources:
The text was updated successfully, but these errors were encountered: