diff --git a/src/__snapshots__/storyshots.spec.js.snap b/src/__snapshots__/storyshots.spec.js.snap index 9bd51c3100..a1a47f6f6d 100644 --- a/src/__snapshots__/storyshots.spec.js.snap +++ b/src/__snapshots__/storyshots.spec.js.snap @@ -1115,19 +1115,19 @@ exports[`Storyshots Components/Button/IconButton Base 1`] = ` exports[`Storyshots Components/Button/LoadingButton Base 1`] = ` @keyframes animation-0 { 0% { - -webkit-transform: rotate3d(0,0,1,0deg); - -ms-transform: rotate3d(0,0,1,0deg); - transform: rotate3d(0,0,1,0deg); + -webkit-transform: rotate(0deg); + -ms-transform: rotate(0deg); + transform: rotate(0deg); } 100% { - -webkit-transform: rotate3d(0,0,1,360deg); - -ms-transform: rotate3d(0,0,1,360deg); - transform: rotate3d(0,0,1,360deg); + -webkit-transform: rotate(360deg); + -ms-transform: rotate(360deg); + transform: rotate(360deg); } } -.circuit-7 { +.circuit-6 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -1160,33 +1160,33 @@ exports[`Storyshots Components/Button/LoadingButton Base 1`] = ` overflow: hidden; } -.circuit-7:focus { +.circuit-6:focus { outline: 0; box-shadow: 0 0 0 4px #AFD0FE; } -.circuit-7:focus::-moz-focus-inner { +.circuit-6:focus::-moz-focus-inner { border: 0; } -.circuit-7:disabled, -.circuit-7[disabled] { +.circuit-6:disabled, +.circuit-6[disabled] { opacity: 0.5; pointer-events: none; box-shadow: none; } -.circuit-7:hover { +.circuit-6:hover { background-color: #1760CE; border-color: #1760CE; } -.circuit-7:active { +.circuit-6:active { background-color: #003C8B; border-color: #003C8B; } -.circuit-2 { +.circuit-1 { height: 24px; width: 24px; position: absolute; @@ -1206,22 +1206,20 @@ exports[`Storyshots Components/Button/LoadingButton Base 1`] = ` } .circuit-0 { + display: block; width: 24px; height: 24px; border-radius: 100%; - border: 2px solid #FFFFFF; + border: 2px solid currentColor; border-top-color: transparent; -webkit-animation: animation-0 1s infinite linear; animation: animation-0 1s infinite linear; -webkit-transform-origin: 50% 50%; -ms-transform-origin: 50% 50%; transform-origin: 50% 50%; - opacity: 0; - -webkit-transition: opacity 200ms ease-in-out; - transition: opacity 200ms ease-in-out; } -.circuit-4 { +.circuit-3 { display: inline-block; opacity: 1; -webkit-transform: translate(0,0); @@ -1233,20 +1231,17 @@ exports[`Storyshots Components/Button/LoadingButton Base 1`] = ` } `; @@ -142,33 +137,19 @@ exports[`LoadingButton Style tests should render with default styles 1`] = ` exports[`LoadingButton Style tests should render with default styles after loading has finished 1`] = ` @keyframes animation-0 { 0% { - -webkit-transform: rotate3d(0,0,1,0deg); - -ms-transform: rotate3d(0,0,1,0deg); - transform: rotate3d(0,0,1,0deg); - } - - 100% { - -webkit-transform: rotate3d(0,0,1,360deg); - -ms-transform: rotate3d(0,0,1,360deg); - transform: rotate3d(0,0,1,360deg); - } -} - -@keyframes animation-0 { - 0% { - -webkit-transform: rotate3d(0,0,1,0deg); - -ms-transform: rotate3d(0,0,1,0deg); - transform: rotate3d(0,0,1,0deg); + -webkit-transform: rotate(0deg); + -ms-transform: rotate(0deg); + transform: rotate(0deg); } 100% { - -webkit-transform: rotate3d(0,0,1,360deg); - -ms-transform: rotate3d(0,0,1,360deg); - transform: rotate3d(0,0,1,360deg); + -webkit-transform: rotate(360deg); + -ms-transform: rotate(360deg); + transform: rotate(360deg); } } -.circuit-7 { +.circuit-6 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -201,33 +182,33 @@ exports[`LoadingButton Style tests should render with default styles after loadi overflow: hidden; } -.circuit-7:focus { +.circuit-6:focus { outline: 0; box-shadow: 0 0 0 4px #AFD0FE; } -.circuit-7:focus::-moz-focus-inner { +.circuit-6:focus::-moz-focus-inner { border: 0; } -.circuit-7:disabled, -.circuit-7[disabled] { +.circuit-6:disabled, +.circuit-6[disabled] { opacity: 0.5; pointer-events: none; box-shadow: none; } -.circuit-7:hover { +.circuit-6:hover { background-color: #1760CE; border-color: #1760CE; } -.circuit-7:active { +.circuit-6:active { background-color: #003C8B; border-color: #003C8B; } -.circuit-2 { +.circuit-1 { height: 24px; width: 24px; position: absolute; @@ -247,22 +228,20 @@ exports[`LoadingButton Style tests should render with default styles after loadi } .circuit-0 { + display: block; width: 24px; height: 24px; border-radius: 100%; - border: 2px solid #FFFFFF; + border: 2px solid currentColor; border-top-color: transparent; -webkit-animation: animation-0 1s infinite linear; animation: animation-0 1s infinite linear; -webkit-transform-origin: 50% 50%; -ms-transform-origin: 50% 50%; transform-origin: 50% 50%; - opacity: 0; - -webkit-transition: opacity 200ms ease-in-out; - transition: opacity 200ms ease-in-out; } -.circuit-4 { +.circuit-3 { display: inline-block; opacity: 1; -webkit-transform: translate(0,0); @@ -274,20 +253,17 @@ exports[`LoadingButton Style tests should render with default styles after loadi } `; @@ -295,33 +271,19 @@ exports[`LoadingButton Style tests should render with default styles after loadi exports[`LoadingButton Style tests should render with loading styles 1`] = ` @keyframes animation-0 { 0% { - -webkit-transform: rotate3d(0,0,1,0deg); - -ms-transform: rotate3d(0,0,1,0deg); - transform: rotate3d(0,0,1,0deg); + -webkit-transform: rotate(0deg); + -ms-transform: rotate(0deg); + transform: rotate(0deg); } 100% { - -webkit-transform: rotate3d(0,0,1,360deg); - -ms-transform: rotate3d(0,0,1,360deg); - transform: rotate3d(0,0,1,360deg); + -webkit-transform: rotate(360deg); + -ms-transform: rotate(360deg); + transform: rotate(360deg); } } -@keyframes animation-0 { - 0% { - -webkit-transform: rotate3d(0,0,1,0deg); - -ms-transform: rotate3d(0,0,1,0deg); - transform: rotate3d(0,0,1,0deg); - } - - 100% { - -webkit-transform: rotate3d(0,0,1,360deg); - -ms-transform: rotate3d(0,0,1,360deg); - transform: rotate3d(0,0,1,360deg); - } -} - -.circuit-7 { +.circuit-6 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -354,33 +316,33 @@ exports[`LoadingButton Style tests should render with loading styles 1`] = ` overflow: hidden; } -.circuit-7:focus { +.circuit-6:focus { outline: 0; box-shadow: 0 0 0 4px #AFD0FE; } -.circuit-7:focus::-moz-focus-inner { +.circuit-6:focus::-moz-focus-inner { border: 0; } -.circuit-7:disabled, -.circuit-7[disabled] { +.circuit-6:disabled, +.circuit-6[disabled] { opacity: 0.5; pointer-events: none; box-shadow: none; } -.circuit-7:hover { +.circuit-6:hover { background-color: #1760CE; border-color: #1760CE; } -.circuit-7:active { +.circuit-6:active { background-color: #003C8B; border-color: #003C8B; } -.circuit-2 { +.circuit-1 { height: 24px; width: 24px; position: absolute; @@ -400,23 +362,20 @@ exports[`LoadingButton Style tests should render with loading styles 1`] = ` } .circuit-0 { + display: block; width: 24px; height: 24px; border-radius: 100%; - border: 2px solid #FFFFFF; + border: 2px solid currentColor; border-top-color: transparent; -webkit-animation: animation-0 1s infinite linear; animation: animation-0 1s infinite linear; -webkit-transform-origin: 50% 50%; -ms-transform-origin: 50% 50%; transform-origin: 50% 50%; - opacity: 0; - -webkit-transition: opacity 200ms ease-in-out; - transition: opacity 200ms ease-in-out; - opacity: 1; } -.circuit-4 { +.circuit-3 { display: inline-block; opacity: 1; -webkit-transform: translate(0,0); @@ -432,20 +391,17 @@ exports[`LoadingButton Style tests should render with loading styles 1`] = ` } `; diff --git a/src/components/LoadingButton/components/Button/__snapshots__/Button.spec.js.snap b/src/components/LoadingButton/components/Button/__snapshots__/Button.spec.js.snap index 46d8a3ce96..83aae80b82 100644 --- a/src/components/LoadingButton/components/Button/__snapshots__/Button.spec.js.snap +++ b/src/components/LoadingButton/components/Button/__snapshots__/Button.spec.js.snap @@ -3,33 +3,19 @@ exports[`Button Style tests should have active loading styles 1`] = ` @keyframes animation-0 { 0% { - -webkit-transform: rotate3d(0,0,1,0deg); - -ms-transform: rotate3d(0,0,1,0deg); - transform: rotate3d(0,0,1,0deg); + -webkit-transform: rotate(0deg); + -ms-transform: rotate(0deg); + transform: rotate(0deg); } 100% { - -webkit-transform: rotate3d(0,0,1,360deg); - -ms-transform: rotate3d(0,0,1,360deg); - transform: rotate3d(0,0,1,360deg); + -webkit-transform: rotate(360deg); + -ms-transform: rotate(360deg); + transform: rotate(360deg); } } -@keyframes animation-0 { - 0% { - -webkit-transform: rotate3d(0,0,1,0deg); - -ms-transform: rotate3d(0,0,1,0deg); - transform: rotate3d(0,0,1,0deg); - } - - 100% { - -webkit-transform: rotate3d(0,0,1,360deg); - -ms-transform: rotate3d(0,0,1,360deg); - transform: rotate3d(0,0,1,360deg); - } -} - -.circuit-7 { +.circuit-6 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -62,33 +48,33 @@ exports[`Button Style tests should have active loading styles 1`] = ` overflow: hidden; } -.circuit-7:focus { +.circuit-6:focus { outline: 0; box-shadow: 0 0 0 4px #AFD0FE; } -.circuit-7:focus::-moz-focus-inner { +.circuit-6:focus::-moz-focus-inner { border: 0; } -.circuit-7:disabled, -.circuit-7[disabled] { +.circuit-6:disabled, +.circuit-6[disabled] { opacity: 0.5; pointer-events: none; box-shadow: none; } -.circuit-7:hover { +.circuit-6:hover { background-color: #1760CE; border-color: #1760CE; } -.circuit-7:active { +.circuit-6:active { background-color: #003C8B; border-color: #003C8B; } -.circuit-2 { +.circuit-1 { height: 24px; width: 24px; position: absolute; @@ -108,23 +94,20 @@ exports[`Button Style tests should have active loading styles 1`] = ` } .circuit-0 { + display: block; width: 24px; height: 24px; border-radius: 100%; - border: 2px solid #FFFFFF; + border: 2px solid currentColor; border-top-color: transparent; -webkit-animation: animation-0 1s infinite linear; animation: animation-0 1s infinite linear; -webkit-transform-origin: 50% 50%; -ms-transform-origin: 50% 50%; transform-origin: 50% 50%; - opacity: 0; - -webkit-transition: opacity 200ms ease-in-out; - transition: opacity 200ms ease-in-out; - opacity: 1; } -.circuit-4 { +.circuit-3 { display: inline-block; opacity: 1; -webkit-transform: translate(0,0); @@ -140,20 +123,17 @@ exports[`Button Style tests should have active loading styles 1`] = ` } `; @@ -161,19 +141,19 @@ exports[`Button Style tests should have active loading styles 1`] = ` exports[`Button Style tests should have default styles 1`] = ` @keyframes animation-0 { 0% { - -webkit-transform: rotate3d(0,0,1,0deg); - -ms-transform: rotate3d(0,0,1,0deg); - transform: rotate3d(0,0,1,0deg); + -webkit-transform: rotate(0deg); + -ms-transform: rotate(0deg); + transform: rotate(0deg); } 100% { - -webkit-transform: rotate3d(0,0,1,360deg); - -ms-transform: rotate3d(0,0,1,360deg); - transform: rotate3d(0,0,1,360deg); + -webkit-transform: rotate(360deg); + -ms-transform: rotate(360deg); + transform: rotate(360deg); } } -.circuit-7 { +.circuit-6 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -206,33 +186,33 @@ exports[`Button Style tests should have default styles 1`] = ` overflow: hidden; } -.circuit-7:focus { +.circuit-6:focus { outline: 0; box-shadow: 0 0 0 4px #AFD0FE; } -.circuit-7:focus::-moz-focus-inner { +.circuit-6:focus::-moz-focus-inner { border: 0; } -.circuit-7:disabled, -.circuit-7[disabled] { +.circuit-6:disabled, +.circuit-6[disabled] { opacity: 0.5; pointer-events: none; box-shadow: none; } -.circuit-7:hover { +.circuit-6:hover { background-color: #1760CE; border-color: #1760CE; } -.circuit-7:active { +.circuit-6:active { background-color: #003C8B; border-color: #003C8B; } -.circuit-2 { +.circuit-1 { height: 24px; width: 24px; position: absolute; @@ -252,22 +232,20 @@ exports[`Button Style tests should have default styles 1`] = ` } .circuit-0 { + display: block; width: 24px; height: 24px; border-radius: 100%; - border: 2px solid #FFFFFF; + border: 2px solid currentColor; border-top-color: transparent; -webkit-animation: animation-0 1s infinite linear; animation: animation-0 1s infinite linear; -webkit-transform-origin: 50% 50%; -ms-transform-origin: 50% 50%; transform-origin: 50% 50%; - opacity: 0; - -webkit-transition: opacity 200ms ease-in-out; - transition: opacity 200ms ease-in-out; } -.circuit-4 { +.circuit-3 { display: inline-block; opacity: 1; -webkit-transform: translate(0,0); @@ -279,20 +257,17 @@ exports[`Button Style tests should have default styles 1`] = ` } `; @@ -300,33 +275,19 @@ exports[`Button Style tests should have default styles 1`] = ` exports[`Button Style tests should have isLoading styles 1`] = ` @keyframes animation-0 { 0% { - -webkit-transform: rotate3d(0,0,1,0deg); - -ms-transform: rotate3d(0,0,1,0deg); - transform: rotate3d(0,0,1,0deg); - } - - 100% { - -webkit-transform: rotate3d(0,0,1,360deg); - -ms-transform: rotate3d(0,0,1,360deg); - transform: rotate3d(0,0,1,360deg); - } -} - -@keyframes animation-0 { - 0% { - -webkit-transform: rotate3d(0,0,1,0deg); - -ms-transform: rotate3d(0,0,1,0deg); - transform: rotate3d(0,0,1,0deg); + -webkit-transform: rotate(0deg); + -ms-transform: rotate(0deg); + transform: rotate(0deg); } 100% { - -webkit-transform: rotate3d(0,0,1,360deg); - -ms-transform: rotate3d(0,0,1,360deg); - transform: rotate3d(0,0,1,360deg); + -webkit-transform: rotate(360deg); + -ms-transform: rotate(360deg); + transform: rotate(360deg); } } -.circuit-7 { +.circuit-6 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -359,33 +320,33 @@ exports[`Button Style tests should have isLoading styles 1`] = ` overflow: hidden; } -.circuit-7:focus { +.circuit-6:focus { outline: 0; box-shadow: 0 0 0 4px #AFD0FE; } -.circuit-7:focus::-moz-focus-inner { +.circuit-6:focus::-moz-focus-inner { border: 0; } -.circuit-7:disabled, -.circuit-7[disabled] { +.circuit-6:disabled, +.circuit-6[disabled] { opacity: 0.5; pointer-events: none; box-shadow: none; } -.circuit-7:hover { +.circuit-6:hover { background-color: #1760CE; border-color: #1760CE; } -.circuit-7:active { +.circuit-6:active { background-color: #003C8B; border-color: #003C8B; } -.circuit-2 { +.circuit-1 { height: 24px; width: 24px; position: absolute; @@ -405,22 +366,20 @@ exports[`Button Style tests should have isLoading styles 1`] = ` } .circuit-0 { + display: block; width: 24px; height: 24px; border-radius: 100%; - border: 2px solid #FFFFFF; + border: 2px solid currentColor; border-top-color: transparent; -webkit-animation: animation-0 1s infinite linear; animation: animation-0 1s infinite linear; -webkit-transform-origin: 50% 50%; -ms-transform-origin: 50% 50%; transform-origin: 50% 50%; - opacity: 0; - -webkit-transition: opacity 200ms ease-in-out; - transition: opacity 200ms ease-in-out; } -.circuit-4 { +.circuit-3 { display: inline-block; opacity: 1; -webkit-transform: translate(0,0); @@ -432,20 +391,17 @@ exports[`Button Style tests should have isLoading styles 1`] = ` } `; diff --git a/src/components/LoadingButton/components/LoadingIcon/__snapshots__/LoadingIcon.spec.js.snap b/src/components/LoadingButton/components/LoadingIcon/__snapshots__/LoadingIcon.spec.js.snap index 88460bc9ea..7868fe4a3f 100644 --- a/src/components/LoadingButton/components/LoadingIcon/__snapshots__/LoadingIcon.spec.js.snap +++ b/src/components/LoadingButton/components/LoadingIcon/__snapshots__/LoadingIcon.spec.js.snap @@ -3,33 +3,19 @@ exports[`LoadingIcon Style tests should have active LoadingIcon styles 1`] = ` @keyframes animation-0 { 0% { - -webkit-transform: rotate3d(0,0,1,0deg); - -ms-transform: rotate3d(0,0,1,0deg); - transform: rotate3d(0,0,1,0deg); + -webkit-transform: rotate(0deg); + -ms-transform: rotate(0deg); + transform: rotate(0deg); } 100% { - -webkit-transform: rotate3d(0,0,1,360deg); - -ms-transform: rotate3d(0,0,1,360deg); - transform: rotate3d(0,0,1,360deg); + -webkit-transform: rotate(360deg); + -ms-transform: rotate(360deg); + transform: rotate(360deg); } } -@keyframes animation-0 { - 0% { - -webkit-transform: rotate3d(0,0,1,0deg); - -ms-transform: rotate3d(0,0,1,0deg); - transform: rotate3d(0,0,1,0deg); - } - - 100% { - -webkit-transform: rotate3d(0,0,1,360deg); - -ms-transform: rotate3d(0,0,1,360deg); - transform: rotate3d(0,0,1,360deg); - } -} - -.circuit-2 { +.circuit-1 { height: 16px; width: 16px; position: absolute; @@ -49,30 +35,24 @@ exports[`LoadingIcon Style tests should have active LoadingIcon styles 1`] = ` } .circuit-0 { + display: block; width: 24px; height: 24px; border-radius: 100%; - border: 2px solid #FFFFFF; + border: 2px solid currentColor; border-top-color: transparent; -webkit-animation: animation-0 1s infinite linear; animation: animation-0 1s infinite linear; -webkit-transform-origin: 50% 50%; -ms-transform-origin: 50% 50%; transform-origin: 50% 50%; - opacity: 0; - -webkit-transition: opacity 200ms ease-in-out; - transition: opacity 200ms ease-in-out; - opacity: 1; }
- `; @@ -80,19 +60,19 @@ exports[`LoadingIcon Style tests should have active LoadingIcon styles 1`] = ` exports[`LoadingIcon Style tests should have disabled LoadingIcon styles 1`] = ` @keyframes animation-0 { 0% { - -webkit-transform: rotate3d(0,0,1,0deg); - -ms-transform: rotate3d(0,0,1,0deg); - transform: rotate3d(0,0,1,0deg); + -webkit-transform: rotate(0deg); + -ms-transform: rotate(0deg); + transform: rotate(0deg); } 100% { - -webkit-transform: rotate3d(0,0,1,360deg); - -ms-transform: rotate3d(0,0,1,360deg); - transform: rotate3d(0,0,1,360deg); + -webkit-transform: rotate(360deg); + -ms-transform: rotate(360deg); + transform: rotate(360deg); } } -.circuit-2 { +.circuit-1 { height: 16px; width: 16px; position: absolute; @@ -112,29 +92,24 @@ exports[`LoadingIcon Style tests should have disabled LoadingIcon styles 1`] = ` } .circuit-0 { + display: block; width: 24px; height: 24px; border-radius: 100%; - border: 2px solid #FFFFFF; + border: 2px solid currentColor; border-top-color: transparent; -webkit-animation: animation-0 1s infinite linear; animation: animation-0 1s infinite linear; -webkit-transform-origin: 50% 50%; -ms-transform-origin: 50% 50%; transform-origin: 50% 50%; - opacity: 0; - -webkit-transition: opacity 200ms ease-in-out; - transition: opacity 200ms ease-in-out; }
- `; @@ -142,29 +117,15 @@ exports[`LoadingIcon Style tests should have disabled LoadingIcon styles 1`] = ` exports[`LoadingIcon Style tests should have error LoadingIcon styles 1`] = ` @keyframes animation-0 { 0% { - -webkit-transform: rotate3d(0,0,1,0deg); - -ms-transform: rotate3d(0,0,1,0deg); - transform: rotate3d(0,0,1,0deg); + -webkit-transform: rotate(0deg); + -ms-transform: rotate(0deg); + transform: rotate(0deg); } 100% { - -webkit-transform: rotate3d(0,0,1,360deg); - -ms-transform: rotate3d(0,0,1,360deg); - transform: rotate3d(0,0,1,360deg); - } -} - -@keyframes animation-0 { - 0% { - -webkit-transform: rotate3d(0,0,1,0deg); - -ms-transform: rotate3d(0,0,1,0deg); - transform: rotate3d(0,0,1,0deg); - } - - 100% { - -webkit-transform: rotate3d(0,0,1,360deg); - -ms-transform: rotate3d(0,0,1,360deg); - transform: rotate3d(0,0,1,360deg); + -webkit-transform: rotate(360deg); + -ms-transform: rotate(360deg); + transform: rotate(360deg); } } @@ -184,7 +145,7 @@ exports[`LoadingIcon Style tests should have error LoadingIcon styles 1`] = ` } } -.circuit-3 { +.circuit-2 { height: 16px; width: 16px; position: absolute; @@ -204,22 +165,20 @@ exports[`LoadingIcon Style tests should have error LoadingIcon styles 1`] = ` } .circuit-0 { + display: block; width: 24px; height: 24px; border-radius: 100%; - border: 2px solid #FFFFFF; + border: 2px solid currentColor; border-top-color: transparent; -webkit-animation: animation-0 1s infinite linear; animation: animation-0 1s infinite linear; -webkit-transform-origin: 50% 50%; -ms-transform-origin: 50% 50%; transform-origin: 50% 50%; - opacity: 0; - -webkit-transition: opacity 200ms ease-in-out; - transition: opacity 200ms ease-in-out; } -.circuit-2 { +.circuit-1 { height: 100%; width: 100%; position: absolute; @@ -238,16 +197,13 @@ exports[`LoadingIcon Style tests should have error LoadingIcon styles 1`] = ` }
-