Skip to content

Guard placeholder glow/wave animations behind prefers-reduced-motion - #42769

Merged
julien-deramond merged 1 commit into
mainfrom
main-jd-placeholder-animations-a11y
Jul 28, 2026
Merged

julien-deramond merged 1 commit into
mainfrom
main-jd-placeholder-animations-a11y

Conversation

@julien-deramond

@julien-deramond julien-deramond commented Jul 28, 2026 •

Copy link
Copy Markdown
Member

Description

Backport #42768 from v6.

Live previews

Copilot AI review requested due to automatic review settings July 28, 2026 20:51
@julien-deramond julien-deramond added css Sass sources or compiled CSS accessibility Keyboard, screen readers, contrast, ARIA v5 v5, the v5-dev branch labels Jul 28, 2026
@github-project-automation github-project-automation Bot moved this to Needs review in v5.4.0 Jul 28, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR backports the Bootstrap v6 change to respect prefers-reduced-motion for placeholder shimmer effects, ensuring .placeholder-glow and .placeholder-wave no longer run infinite animations for users who request reduced motion (while still allowing the behavior to be compiled out via $enable-reduced-motion).

Changes:

  • Added an $enable-reduced-motion-guarded @media (prefers-reduced-motion: reduce) override to disable .placeholder-glow’s animation.
  • Added the same reduced-motion override to disable .placeholder-wave’s animation.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@julien-deramond
julien-deramond marked this pull request as ready for review July 28, 2026 20:54
@julien-deramond
julien-deramond requested a review from a team as a code owner July 28, 2026 20:54
@julien-deramond
julien-deramond merged commit 6177d5f into main Jul 28, 2026
15 checks passed
@github-project-automation github-project-automation Bot moved this from Needs review to Done in v5.4.0 Jul 28, 2026
@julien-deramond
julien-deramond deleted the main-jd-placeholder-animations-a11y branch July 28, 2026 20:54
@mdo mdo removed this from v5.4.0 Nov 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

accessibility Keyboard, screen readers, contrast, ARIA css Sass sources or compiled CSS v5 v5, the v5-dev branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants