Skip to content

Commit

Permalink
fix(web-components): prefers-reduced-motion media query in button (#3…
Browse files Browse the repository at this point in the history
  • Loading branch information
radium-v authored Oct 14, 2024
1 parent 9325579 commit eaccd58
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "prerelease",
"comment": "fix prefers-reduced-motion media query in button",
"packageName": "@fluentui/web-components",
"email": "863023+radium-v@users.noreply.github.com",
"dependentChangeType": "patch"
}
4 changes: 3 additions & 1 deletion packages/web-components/src/button/button.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,9 @@ export const baseButtonStyles = css`
}
@media screen and (prefers-reduced-motion: reduce) {
transition-duration: 0.01ms;
:host {
transition-duration: 0.01ms;
}
}
::slotted(svg) {
Expand Down

0 comments on commit eaccd58

Please sign in to comment.