Skip to content

Remove the manual pause/resume button from the Carousel - #307

Merged
Castellon-ACM merged 1 commit into
trunkfrom
remove-carousel-pause-button
Sep 18, 2026
Merged

Castellon-ACM merged 1 commit into
trunkfrom
remove-carousel-pause-button

Conversation

@Castellon-ACM

@Castellon-ACM Castellon-ACM commented Sep 18, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Closes #306.

Client request: remove the visible pause/resume control the Carousel rendered in the top-right corner while autoplay was running.

Note: this button existed specifically to satisfy WCAG 2.2.2 (Pause, Stop, Hide) — removing it is a deliberate accessibility trade-off, not a bug fix, per the explicit request recorded in #306.

  • The pause-on-hover/pause-on-focus behavior (data-pause-on-hover) is unaffected and stays exactly as-is.
  • Only the visible manual button, its aria-pressed/aria-label wiring, and the "manual" pause reason coordinating with it are removed.
  • hoverpause: false stays on the Glide config since hover/focus pausing is still handled manually (unchanged from before), independent of this removal.

Test plan

  • composer lint clean
  • tests/js/carousel-accessibility.test.js updated: removed the 5 pause-button-specific tests, kept and adjusted the autoplay/reduced-motion and hover+focus coordination tests (now covering only those two reasons instead of three) — all 5 remaining tests pass

🤖 Generated with Claude Code

Open WordPress Playground Preview

Closes #306. Client request: the visible pause/resume control the
carousel rendered in its top-right corner while autoplay was running
is no longer wanted.

This button existed specifically to satisfy WCAG 2.2.2 (Pause, Stop,
Hide) — removing it is a deliberate accessibility trade-off, not a bug
fix, per that explicit request. The pause-on-hover/pause-on-focus
behavior (data-pause-on-hover) is unaffected and stays as-is; only the
visible manual control and the "manual" pause reason coordinating with
it are gone.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Credits must be used to enable repository wide code reviews.

@Castellon-ACM
Castellon-ACM merged commit f19f064 into trunk Sep 18, 2026
6 checks passed
@Castellon-ACM
Castellon-ACM deleted the remove-carousel-pause-button branch September 18, 2026 09:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove the manual pause/resume button from the Carousel block

1 participant