Skip to content

Commit

Permalink
fix(skeleton): disable motion if prefers-reduced-motion is true
Browse files Browse the repository at this point in the history
  • Loading branch information
tw15egan committed Sep 4, 2019
1 parent ca5231b commit 310bd40
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/components/src/globals/scss/_helper-mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,10 @@
left: 0;
background: $skeleton-02;
animation: 3000ms ease-in-out skeleton infinite;

@media (prefers-reduced-motion: reduce) {
animation: none;
}
}
}

Expand Down

0 comments on commit 310bd40

Please sign in to comment.