Announces manual hero slide changes and adds a pause button #5

Merged
Sluijsens merged 5 commits from fix/hero-carousel-announce-and-pause into master 2026-10-19 20:56:27 +02:00
Owner

Fixes two accessibility gaps in the home page hero slider (bug fix, AI-DLC: aidlc-docs/bugs/hero-carousel-announce-and-pause/bug-fix.md).

What changes

  • Announcement: after an arrow click or swipe, screen readers hear the new photo, e.g. "Foto 2 van 8: Knusse newbornfoto met de familie". Automatic changes stay silent.
  • Pause button bottom right, mirroring the socials: pauses and resumes the slide show (WCAG 2.2.2). Its name switches between "Diavoorstelling pauzeren" and "Diavoorstelling afspelen". Hidden when there is no autoplay (reduced motion, one photo).
  • Resuming via the button also clears the hover/focus pause, so the click has a visible effect.

Verification

  • New tests fail before the fix and pass after it; full suite 118 tests, lint, format, typecheck and build clean.
  • Scripted browser check (headless Chrome) on a local preview: announcement after the arrow, silence after the automatic change, pause holds the slide, resume moves on.
  • To do before merge: test deploy and the owner's own screen reader check.

Generated with Claude Code

Fixes two accessibility gaps in the home page hero slider (bug fix, AI-DLC: aidlc-docs/bugs/hero-carousel-announce-and-pause/bug-fix.md). ## What changes - **Announcement**: after an arrow click or swipe, screen readers hear the new photo, e.g. "Foto 2 van 8: Knusse newbornfoto met de familie". Automatic changes stay silent. - **Pause button** bottom right, mirroring the socials: pauses and resumes the slide show (WCAG 2.2.2). Its name switches between "Diavoorstelling pauzeren" and "Diavoorstelling afspelen". Hidden when there is no autoplay (reduced motion, one photo). - Resuming via the button also clears the hover/focus pause, so the click has a visible effect. ## Verification - New tests fail before the fix and pass after it; full suite 118 tests, lint, format, typecheck and build clean. - Scripted browser check (headless Chrome) on a local preview: announcement after the arrow, silence after the automatic change, pause holds the slide, resume moves on. - To do before merge: test deploy and the owner's own screen reader check. Generated with [Claude Code](https://claude.com/claude-code)
Sluijsens added 1 commit 2026-10-19 19:31:47 +02:00
Announces manual hero slide changes and adds a pause button
Continuous Integration / check (pull_request) Successful in 59s
Continuous Integration / deploy-test (pull_request) Skipped
Continuous Integration / lighthouse (pull_request) Successful in 3m59s
Continuous Integration / deploy-production (pull_request) Skipped
46fb2f6b5c
Screen readers now hear the new photo after an arrow or swipe, while automatic
changes stay silent. A pause button bottom right lets visitors stop the slide
show, which hover and keyboard focus alone did not allow on touch screens.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sluijsens added 1 commit 2026-10-19 19:44:21 +02:00
Records the test deploy check for the hero fix
Continuous Integration / check (pull_request) Successful in 6m10s
Continuous Integration / deploy-test (pull_request) Skipped
Continuous Integration / lighthouse (pull_request) Successful in 3m40s
Continuous Integration / deploy-production (pull_request) Skipped
e308aad8f0
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sluijsens added 1 commit 2026-10-19 20:33:53 +02:00
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
b332f1a846
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>
Sluijsens added 1 commit 2026-10-19 20:45:35 +02:00
Records the hero fix check on test after the pause announcements
Continuous Integration / check (pull_request) Successful in 54s
Continuous Integration / deploy-test (pull_request) Skipped
Continuous Integration / lighthouse (pull_request) Successful in 3m42s
Continuous Integration / deploy-production (pull_request) Skipped
45428e4446
Also notes that b332f1a carried the owner's shorter alt text for hero-1.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sluijsens added 1 commit 2026-10-19 20:51:14 +02:00
Closes out the hero carousel bug fix
Continuous Integration / check (pull_request) Successful in 55s
Continuous Integration / deploy-test (pull_request) Skipped
Continuous Integration / lighthouse (pull_request) Successful in 3m44s
Continuous Integration / deploy-production (pull_request) Skipped
5ffaa1ad56
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sluijsens merged commit 38c5c3e262 into master 2026-10-19 20:56:27 +02:00
Sluijsens deleted branch fix/hero-carousel-announce-and-pause 2026-10-19 20:56:27 +02:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SLP_Software/AndreaSlopFotografie#5