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

Commit 77d5ae8

Browse files
authored
fix(Spinner): use jss10 scoped keyframes (#652)
1 parent 119ee08 commit 77d5ae8

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/components/spinner/spinner-styles.jsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
const identifier = `spinner-${Math.round(1000 * Math.random())}`;
2-
31
export default theme => ({
4-
[`@keyframes ${identifier}`]: {
2+
[`@keyframes spinThatSpinner`]: {
53
from: {
64
transform: 'rotate(0deg)',
75
},
@@ -13,7 +11,7 @@ export default theme => ({
1311
spinner: {
1412
...theme.mixins.basicBoxSizing,
1513
display: 'inline-block',
16-
animation: `${identifier} 1s linear infinite`,
14+
animation: `$spinThatSpinner 1s linear infinite`,
1715
},
1816

1917
element: {

0 commit comments

Comments
 (0)