Skip to content

Feature/pt 2136 progress bar does not trigger any screen reader status#16398

Merged
brandonkelly merged 19 commits into5.6from
feature/pt-2136-progress-bar-does-not-trigger-any-screen-reader-status
Jan 13, 2025
Merged

Feature/pt 2136 progress bar does not trigger any screen reader status#16398
brandonkelly merged 19 commits into5.6from
feature/pt-2136-progress-bar-does-not-trigger-any-screen-reader-status

Conversation

@gcamacho079
Copy link
Copy Markdown
Contributor

Description

This PR:

  • Introduces a new IntervalManager class that can be used for managing JavaScript intervals. Includes methods for starting and stopping the interval.
  • The ProgressBar has been updated so that announcements are made via an IntervalManager instance. This allows screen reader users to get intermittent updates via the Craft.cp.announce() method. This functionality can be disabled by setting announceProgress to false via the settings if live region updates will be handled elsewhere in the code.

To test:

  • Go to a page where a progress bar is loaded (for example, Asset Indexes or Caches)
  • Start a task that triggers the progress bar
  • Use a screen reader (or an extension like NerdeRegion that visualizes the live region updates) to verify that progress is intermittently announced

Related issues

Resolves PT-2136

@gcamacho079 gcamacho079 added enhancement improvements to existing features accessibility 👤 features related to accessibility labels Jan 7, 2025
@linear
Copy link
Copy Markdown

linear Bot commented Jan 7, 2025

@brandonkelly brandonkelly merged commit 709b78e into 5.6 Jan 13, 2025
@brandonkelly brandonkelly deleted the feature/pt-2136-progress-bar-does-not-trigger-any-screen-reader-status branch January 13, 2025 19:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

accessibility 👤 features related to accessibility enhancement improvements to existing features

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants