Announces pausing and resuming the hero slide show
Continuous Integration / check (pull_request) Successful in 6m47s
Continuous Integration / deploy-test (pull_request) Skipped
Continuous Integration / lighthouse (pull_request) Successful in 3m47s
Continuous Integration / deploy-production (pull_request) Skipped

The pause button only changed its name, which screen readers often do not read
for the focused button. The live region now also says when the slide show is
paused or plays again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-19 20:33:47 +02:00
co-authored by Claude Opus 5.5
parent e308aad8f0
commit b332f1a846
7 changed files with 68 additions and 18 deletions
+6
View File
@@ -97,6 +97,9 @@ describe('Hero', () => {
await userEvent.click(pause);
expect(pause).toHaveAccessibleName('Diavoorstelling afspelen');
expect(screen.getByTestId('hero-announcement')).toHaveTextContent(
'Diavoorstelling gepauzeerd',
);
expect(progress()).toHaveAttribute('data-state', 'paused');
// Blijft gepauzeerd als de muis de hero verlaat
@@ -105,6 +108,9 @@ describe('Hero', () => {
await userEvent.click(pause);
expect(pause).toHaveAccessibleName('Diavoorstelling pauzeren');
expect(screen.getByTestId('hero-announcement')).toHaveTextContent(
'Diavoorstelling speelt weer af',
);
expect(progress()).toHaveAttribute('data-state', 'running');
expect(await axeResults(container)).toHaveNoViolations();
});