Skip to content

Commit

Permalink
Dashboard: DashboardGrid - don't animate if reduced-motion set (#75540)
Browse files Browse the repository at this point in the history
  • Loading branch information
dnwe committed Nov 29, 2023
1 parent 791881f commit f41cf40
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions public/sass/components/_dashboard_grid.scss
Expand Up @@ -109,8 +109,10 @@
transition-property: none;
}

.react-grid-layout--enable-move-animations {
.react-grid-item.cssTransforms {
transition-property: transform;
@media (prefers-reduced-motion: no-preference) {
.react-grid-layout--enable-move-animations {
.react-grid-item.cssTransforms {
transition-property: transform;
}
}
}

0 comments on commit f41cf40

Please sign in to comment.