Skip to content

fix(fab): respect prefers-reduced-motion when the fab opens - #4841

Merged
saadeghi merged 1 commit into
saadeghi:v5.8from
sulimanbenhalim:fix-fab-reduced-motion
Oct 31, 2026
Merged

saadeghi merged 1 commit into
saadeghi:v5.8from
sulimanbenhalim:fix-fab-reduced-motion

Conversation

@sulimanbenhalim

Copy link
Copy Markdown
Contributor

#4651 added the reduced motion guards but fab's transitions weren't covered, so with reduced motion on the actions still scale and fade in one after another, and in fab-flower the trigger still turns. wrapped both fab transitions in the same no-preference guard.

to see it: devtools rendering, emulate prefers-reduced-motion: reduce, then focus the + button
https://play.tailwindcss.com/yBW12r4sNv

prefers-reduced-motion: reduce, 60ms after focus

@github-actions

Copy link
Copy Markdown

1 component changed. Basic playground: Before vs. After.

@saadeghi
saadeghi merged commit fade56b into saadeghi:v5.8 Oct 31, 2026
1 of 2 checks passed
@sulimanbenhalim
sulimanbenhalim deleted the fix-fab-reduced-motion branch October 31, 2026 11:16
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.

2 participants