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.

  1. If the inline loading message is changed, be sure it is clear and concise.

Resources

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
DAP test:
- 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
VoiceOver(VO) Test:
  1. Tab to the "Toggle state" button. VO announces "You are currently on a button, to select this button press Control-Option-Space."
  2. Press Control-Option-Space keys. VO announces, "Loading data."
  3. 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 test:
  1. Tab to the "Toggle state" button. JAWS announces "Toggle state button, to activate press the Space bar."
  2. Press the Space key. JAWS announces, "Alert, Loading data."
  3. Press the Space key again and JAWS announces, "Alet, 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
VoiceOver test:
  1. Swipe Right to the Toggle state button. VO announces, "Toggle state button."
  2. Double tap to select the button. VO announces, "Loading data eclipse."
  3. Double tap to select the button again. VO announces, "Data loaded."