Skip to content
This repository has been archived by the owner on Oct 20, 2022. It is now read-only.

Commit

Permalink
fix(Spinner): use jss10 scoped keyframes (#652)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dhq authored Oct 14, 2019
1 parent 119ee08 commit 77d5ae8
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/components/spinner/spinner-styles.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
const identifier = `spinner-${Math.round(1000 * Math.random())}`;

export default theme => ({
[`@keyframes ${identifier}`]: {
[`@keyframes spinThatSpinner`]: {
from: {
transform: 'rotate(0deg)',
},
Expand All @@ -13,7 +11,7 @@ export default theme => ({
spinner: {
...theme.mixins.basicBoxSizing,
display: 'inline-block',
animation: `${identifier} 1s linear infinite`,
animation: `$spinThatSpinner 1s linear infinite`,
},

element: {
Expand Down

1 comment on commit 77d5ae8

@vercel
Copy link

@vercel vercel bot commented on 77d5ae8 Oct 14, 2019

Choose a reason for hiding this comment

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

Please sign in to comment.