Inline Loading
How it works
The Carbon inline loading component is used to notify users that their action is
being processed. W3C WAI-ARIA role="alert"
and aria-live="assertive"
are
used to ensure screen reader users are also provided the same information.
Accessibility considerations
This component has been validated to meet the WCAG 2.0 AA and Section 508 accessibility guidelines, however changes made by the content owner can affect accessibility compliance. Be sure to review and follow the guidance in this section when updating or adding new content to this component.
- If the inline loading message is changed, be sure it is clear and concise.
Resources
- IBM Accessibility Checklist - Checkpoint 4.1.3 Status Message (WCAG Success Criteria 4.1.3)
Accessibility testing
Accessibility issues are tracked in the Carbon Component GitHub repository.
Automated test
Automated test environment
Results
- macOS Mojave version 10.14.6 with VoiceOver
- Chrome version 77.0.3865.90
- Dynamic Assessment Plugin (DAP) version 1.8.0.0 - IBM Accessibility WCAG 2.1 Sept. 2019 Ruleset
- Carbon React version 7.7.1
- Chrome version 77.0.3865.90
- Dynamic Assessment Plugin (DAP) version 1.8.0.0 - IBM Accessibility WCAG 2.1 Sept. 2019 Ruleset
- Carbon React version 7.7.1
DAP test:
- No violations
- No violations
MacOS screen reader tests
Environment
Results
- macOS Mojave version 10.14.6 with VoiceOver
- Chrome version 77.0.3865.90
- Carbon React version 7.7.1
- Chrome version 77.0.3865.90
- Carbon React version 7.7.1
VoiceOver(VO) Test:
- Tab to the "Toggle state" button. VO announces "You are currently on a button, to select this button press Control-Option-Space."
- Press Control-Option-Space keys. VO announces, "Loading data".
- Press Control-Option-Space keys again and VO announces, "Data loaded".
Windows screen reader tests
Environment
Results
- Microsoft Windows 10
- JAWS 19.1810.64
- Firefox version 67
- Carbon React version 7.7.1
- JAWS 19.1810.64
- Firefox version 67
- Carbon React version 7.7.1
JAWS test:
- Tab to the "Toggle state" button. JAWS announces "Toggle state button, to activate press the Space bar."
- Press the Space key. JAWS announces, "Alert, Loading data".
- Press the Space key again and JAWS announces, "Alert, Data loaded".
iOS screen reader tests
Environment
Results
- iOS version 13.1.3 with VoiceOver
- Safari version 13.1.3
- Carbon React version 7.7.1
- Safari version 13.1.3
- Carbon React version 7.7.1
VoiceOver test:
- Swipe Right to the Toggle state button. VO announces, "Toggle state button".
- Double tap to select the button. VO announces, "Loading data eclipse".
- Double tap to select the button again. VO announces, "Data loaded".