diff --git a/src/Alert/__tests__/__snapshots__/Alert.test.js.snap b/src/Alert/__tests__/__snapshots__/Alert.test.js.snap index 4c824a9c9..3b065d101 100644 --- a/src/Alert/__tests__/__snapshots__/Alert.test.js.snap +++ b/src/Alert/__tests__/__snapshots__/Alert.test.js.snap @@ -11,7 +11,7 @@ exports[`renders correctly 1`] = ` font-size: 100%; box-sizing: border-box; background-color: unset; - color: inherit; + color: #fcfcfc; } .c3 { @@ -24,36 +24,10 @@ exports[`renders correctly 1`] = ` font-size: 100%; box-sizing: border-box; background-color: unset; - color: #fcfcfc; + color: inherit; } .c0 { - box-sizing: border-box; - font-family: system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen,Ubuntu,Cantarell,'Fira Sans', 'Droid Sans','Helvetica Neue',sans-serif; - font-size: 16px; - font-weight: 400; - line-height: 1.5; - margin: 0; - padding: 0; - overflow-x: hidden; - -webkit-font-smoothing: antialiased; - text-rendering: optimizeLegibility; - color: #435a6f; - fill: #435a6f; -} - -.c0 *, -.c0 *::before, -.c0 *::after { - box-sizing: inherit; -} - -.c0 *:focus { - outline: 2px solid #7467c0; - outline-offset: 2px; -} - -.c2 { background-color: white; border: 1px solid #e6e6e6; border-left: 4px solid #435a6f; @@ -62,18 +36,18 @@ exports[`renders correctly 1`] = ` padding: 1rem; } -abbr.c4 { +abbr.c2 { border-bottom: 1px dotted; cursor: help; -webkit-text-decoration: none; text-decoration: none; } -i.c4 { +i.c2 { font-style: italic; } -kbd.c4 { +kbd.c2 { background: #454d5d; border-radius: 0.1rem; color: #fff; @@ -81,63 +55,59 @@ kbd.c4 { padding: 0.1rem 0.2rem; } -mark.c4 { +mark.c2 { background: #ffe9b3; border-radius: 0.1rem; padding: 0.1rem 0.2rem; } -strong.c4 { +strong.c2 { font-weight: bold; } -sub.c4, -sup.c4 { +sub.c2, +sup.c2 { font-size: 0.8em; vertical-align: baseline; } -ins.c4, -u.c4 { +ins.c2, +u.c2 { -webkit-text-decoration-skip: ink edges; text-decoration-skip: ink edges; } -i.c4, -cite.c4, -var.c4, -em.c4 { +i.c2, +cite.c2, +var.c2, +em.c2 { font-style: italic; } -kbd.c4, -pre.c4, -samp.c4 { +kbd.c2, +pre.c2, +samp.c2 { font-family: 'SF Mono','Segoe UI Mono','Roboto Mono',Menlo,Courier,monospace; } -.c4 .c5 { +.c2 .c4 { top: 0.1em; } `; exports[`renders correctly when a palette prop is set 1`] = ` -.c1 { +.c3 { margin: unset; padding: unset; border: unset; @@ -150,7 +120,7 @@ exports[`renders correctly when a palette prop is set 1`] = ` color: inherit; } -.c3 { +.c1 { margin: unset; padding: unset; border: unset; @@ -164,32 +134,6 @@ exports[`renders correctly when a palette prop is set 1`] = ` } .c0 { - box-sizing: border-box; - font-family: system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen,Ubuntu,Cantarell,'Fira Sans', 'Droid Sans','Helvetica Neue',sans-serif; - font-size: 16px; - font-weight: 400; - line-height: 1.5; - margin: 0; - padding: 0; - overflow-x: hidden; - -webkit-font-smoothing: antialiased; - text-rendering: optimizeLegibility; - color: #435a6f; - fill: #435a6f; -} - -.c0 *, -.c0 *::before, -.c0 *::after { - box-sizing: inherit; -} - -.c0 *:focus { - outline: 2px solid #7467c0; - outline-offset: 2px; -} - -.c2 { background-color: white; border: 1px solid #e6e6e6; border-left: 4px solid #3926a5; @@ -198,18 +142,18 @@ exports[`renders correctly when a palette prop is set 1`] = ` padding: 1rem; } -abbr.c4 { +abbr.c2 { border-bottom: 1px dotted; cursor: help; -webkit-text-decoration: none; text-decoration: none; } -i.c4 { +i.c2 { font-style: italic; } -kbd.c4 { +kbd.c2 { background: #454d5d; border-radius: 0.1rem; color: #fff; @@ -217,58 +161,54 @@ kbd.c4 { padding: 0.1rem 0.2rem; } -mark.c4 { +mark.c2 { background: #ffe9b3; border-radius: 0.1rem; padding: 0.1rem 0.2rem; } -strong.c4 { +strong.c2 { font-weight: bold; } -sub.c4, -sup.c4 { +sub.c2, +sup.c2 { font-size: 0.8em; vertical-align: baseline; } -ins.c4, -u.c4 { +ins.c2, +u.c2 { -webkit-text-decoration-skip: ink edges; text-decoration-skip: ink edges; } -i.c4, -cite.c4, -var.c4, -em.c4 { +i.c2, +cite.c2, +var.c2, +em.c2 { font-style: italic; } -kbd.c4, -pre.c4, -samp.c4 { +kbd.c2, +pre.c2, +samp.c2 { font-family: 'SF Mono','Segoe UI Mono','Roboto Mono',Menlo,Courier,monospace; } -.c4 .c5 { +.c2 .c4 { top: 0.1em; } `; @@ -283,10 +223,10 @@ exports[`renders correctly when a title prop is set 1`] = ` font-size: 100%; box-sizing: border-box; background-color: unset; - color: inherit; + color: #fcfcfc; } -.c3 { +.c4 { margin: unset; padding: unset; border: unset; @@ -296,83 +236,57 @@ exports[`renders correctly when a title prop is set 1`] = ` font-size: 100%; box-sizing: border-box; background-color: unset; - color: #fcfcfc; -} - -.c0 { - box-sizing: border-box; - font-family: system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen,Ubuntu,Cantarell,'Fira Sans', 'Droid Sans','Helvetica Neue',sans-serif; - font-size: 16px; - font-weight: 400; - line-height: 1.5; - margin: 0; - padding: 0; - overflow-x: hidden; - -webkit-font-smoothing: antialiased; - text-rendering: optimizeLegibility; - color: #435a6f; - fill: #435a6f; -} - -.c0 *, -.c0 *::before, -.c0 *::after { - box-sizing: inherit; -} - -.c0 *:focus { - outline: 2px solid #7467c0; - outline-offset: 2px; + color: inherit; } -.c5 { +.c3 { font-weight: 700; line-height: 1.2; margin-bottom: 1rem; } -.heading.c5 + .sub-heading { +.heading.c3 + .sub-heading { margin-top: -1rem; } -.c5:last-child { +.c3:last-child { margin-bottom: 0; } -h1.c5 { +h1.c3 { font-size: 3rem; } -h2.c5 { +h2.c3 { font-size: 2.5rem; } -h3.c5 { +h3.c3 { font-size: 2rem; } -h4.c5 { +h4.c3 { font-size: 1.5rem; } -h5.c5 { +h5.c3 { font-size: 1.25rem; } -h6.c5 { +h6.c3 { font-size: 1rem; } -.c5 .c7 { +.c3 .c6 { top: 0.1em; } -.c4 { +.c2 { font-weight: 600; margin-bottom: 0.5rem; } -.c2 { +.c0 { background-color: white; border: 1px solid #e6e6e6; border-left: 4px solid #435a6f; @@ -381,18 +295,18 @@ h6.c5 { padding: 1rem; } -abbr.c6 { +abbr.c5 { border-bottom: 1px dotted; cursor: help; -webkit-text-decoration: none; text-decoration: none; } -i.c6 { +i.c5 { font-style: italic; } -kbd.c6 { +kbd.c5 { background: #454d5d; border-radius: 0.1rem; color: #fff; @@ -400,111 +314,94 @@ kbd.c6 { padding: 0.1rem 0.2rem; } -mark.c6 { +mark.c5 { background: #ffe9b3; border-radius: 0.1rem; padding: 0.1rem 0.2rem; } -strong.c6 { +strong.c5 { font-weight: bold; } -sub.c6, -sup.c6 { +sub.c5, +sup.c5 { font-size: 0.8em; vertical-align: baseline; } -ins.c6, -u.c6 { +ins.c5, +u.c5 { -webkit-text-decoration-skip: ink edges; text-decoration-skip: ink edges; } -i.c6, -cite.c6, -var.c6, -em.c6 { +i.c5, +cite.c5, +var.c5, +em.c5 { font-style: italic; } -kbd.c6, -pre.c6, -samp.c6 { +kbd.c5, +pre.c5, +samp.c5 { font-family: 'SF Mono','Segoe UI Mono','Roboto Mono',Menlo,Courier,monospace; } -.c6 .c7 { +.c5 .c6 { top: 0.1em; } @media (max-width:480px) { - h1.c5 { + h1.c3 { font-size: 2rem; } } @media (max-width:480px) { - h2.c5 { + h2.c3 { font-size: 1.8rem; } } @media (max-width:480px) { - h3.c5 { + h3.c3 { font-size: 1.6rem; } } @media (max-width:480px) { - h4.c5 { + h4.c3 { font-size: 1.4rem; } } @media (max-width:480px) { - h5.c5 { + h5.c3 { font-size: 1.2rem; } } `; exports[`renders correctly with a custom element 1`] = ` .c1 { - margin: unset; - padding: unset; - border: unset; - background: unset; - font: unset; - font-family: inherit; - font-size: 100%; - box-sizing: border-box; - background-color: unset; - color: inherit; -} - -.c3 { margin: unset; padding: unset; border: unset; @@ -518,32 +415,6 @@ exports[`renders correctly with a custom element 1`] = ` } .c0 { - box-sizing: border-box; - font-family: system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen,Ubuntu,Cantarell,'Fira Sans', 'Droid Sans','Helvetica Neue',sans-serif; - font-size: 16px; - font-weight: 400; - line-height: 1.5; - margin: 0; - padding: 0; - overflow-x: hidden; - -webkit-font-smoothing: antialiased; - text-rendering: optimizeLegibility; - color: #435a6f; - fill: #435a6f; -} - -.c0 *, -.c0 *::before, -.c0 *::after { - box-sizing: inherit; -} - -.c0 *:focus { - outline: 2px solid #7467c0; - outline-offset: 2px; -} - -.c2 { background-color: white; border: 1px solid #e6e6e6; border-left: 4px solid #435a6f; @@ -554,14 +425,10 @@ exports[`renders correctly with a custom element 1`] = ` `; diff --git a/src/Alert/__tests__/__snapshots__/AlertTitle.test.js.snap b/src/Alert/__tests__/__snapshots__/AlertTitle.test.js.snap index fab742580..8feee384d 100644 --- a/src/Alert/__tests__/__snapshots__/AlertTitle.test.js.snap +++ b/src/Alert/__tests__/__snapshots__/AlertTitle.test.js.snap @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`renders correctly 1`] = ` -.c1 { +.c2 { margin: unset; padding: unset; border: unset; @@ -14,116 +14,86 @@ exports[`renders correctly 1`] = ` color: inherit; } -.c0 { - box-sizing: border-box; - font-family: system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen,Ubuntu,Cantarell,'Fira Sans', 'Droid Sans','Helvetica Neue',sans-serif; - font-size: 16px; - font-weight: 400; - line-height: 1.5; - margin: 0; - padding: 0; - overflow-x: hidden; - -webkit-font-smoothing: antialiased; - text-rendering: optimizeLegibility; - color: #435a6f; - fill: #435a6f; -} - -.c0 *, -.c0 *::before, -.c0 *::after { - box-sizing: inherit; -} - -.c0 *:focus { - outline: 2px solid #7467c0; - outline-offset: 2px; -} - -.c3 { +.c1 { font-weight: 700; line-height: 1.2; margin-bottom: 1rem; } -.heading.c3 + .sub-heading { +.heading.c1 + .sub-heading { margin-top: -1rem; } -.c3:last-child { +.c1:last-child { margin-bottom: 0; } -h1.c3 { +h1.c1 { font-size: 3rem; } -h2.c3 { +h2.c1 { font-size: 2.5rem; } -h3.c3 { +h3.c1 { font-size: 2rem; } -h4.c3 { +h4.c1 { font-size: 1.5rem; } -h5.c3 { +h5.c1 { font-size: 1.25rem; } -h6.c3 { +h6.c1 { font-size: 1rem; } -.c3 .c4 { +.c1 .c3 { top: 0.1em; } -.c2 { +.c0 { font-weight: 600; margin-bottom: 0.5rem; } @media (max-width:480px) { - h1.c3 { + h1.c1 { font-size: 2rem; } } @media (max-width:480px) { - h2.c3 { + h2.c1 { font-size: 1.8rem; } } @media (max-width:480px) { - h3.c3 { + h3.c1 { font-size: 1.6rem; } } @media (max-width:480px) { - h4.c3 { + h4.c1 { font-size: 1.4rem; } } @media (max-width:480px) { - h5.c3 { + h5.c1 { font-size: 1.2rem; } } -
-
- AlertTitle -
-
+ AlertTitle + `; diff --git a/src/Backdrop/__tests__/__snapshots__/Backdrop.test.js.snap b/src/Backdrop/__tests__/__snapshots__/Backdrop.test.js.snap index dce57c83d..a59a9ffeb 100644 --- a/src/Backdrop/__tests__/__snapshots__/Backdrop.test.js.snap +++ b/src/Backdrop/__tests__/__snapshots__/Backdrop.test.js.snap @@ -15,32 +15,6 @@ exports[`renders correctly for a basic backdrop 1`] = ` } .c0 { - box-sizing: border-box; - font-family: system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen,Ubuntu,Cantarell,'Fira Sans', 'Droid Sans','Helvetica Neue',sans-serif; - font-size: 16px; - font-weight: 400; - line-height: 1.5; - margin: 0; - padding: 0; - overflow-x: hidden; - -webkit-font-smoothing: antialiased; - text-rendering: optimizeLegibility; - color: #435a6f; - fill: #435a6f; -} - -.c0 *, -.c0 *::before, -.c0 *::after { - box-sizing: inherit; -} - -.c0 *:focus { - outline: 2px solid #7467c0; - outline-offset: 2px; -} - -.c2 { -webkit-transform: translate3d(0px,0px,0px); -ms-transform: translate3d(0px,0px,0px); transform: translate3d(0px,0px,0px); @@ -56,21 +30,17 @@ exports[`renders correctly for a basic backdrop 1`] = ` opacity: 0.4; } -.c2[aria-hidden="true"] { +.c0[aria-hidden="true"] { pointer-events: none; display: none !important; }
-
- test -
+ test
`; diff --git a/src/Blockquote/__tests__/__snapshots__/Blockquote.test.js.snap b/src/Blockquote/__tests__/__snapshots__/Blockquote.test.js.snap index 6c3dfb4c4..8a8a65dd7 100644 --- a/src/Blockquote/__tests__/__snapshots__/Blockquote.test.js.snap +++ b/src/Blockquote/__tests__/__snapshots__/Blockquote.test.js.snap @@ -15,43 +15,13 @@ exports[`renders correctly for a basic blockquote 1`] = ` } .c0 { - box-sizing: border-box; - font-family: system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen,Ubuntu,Cantarell,'Fira Sans', 'Droid Sans','Helvetica Neue',sans-serif; - font-size: 16px; - font-weight: 400; - line-height: 1.5; - margin: 0; - padding: 0; - overflow-x: hidden; - -webkit-font-smoothing: antialiased; - text-rendering: optimizeLegibility; - color: #435a6f; - fill: #435a6f; -} - -.c0 *, -.c0 *::before, -.c0 *::after { - box-sizing: inherit; -} - -.c0 *:focus { - outline: 2px solid #7467c0; - outline-offset: 2px; -} - -.c2 { border-left: 4px solid #ccc; padding: 1rem; } -
-
- test -
-
+ test + `; diff --git a/src/Button/__tests__/__snapshots__/ActionButtons.test.js.snap b/src/Button/__tests__/__snapshots__/ActionButtons.test.js.snap index 27670f968..68851a9a6 100644 --- a/src/Button/__tests__/__snapshots__/ActionButtons.test.js.snap +++ b/src/Button/__tests__/__snapshots__/ActionButtons.test.js.snap @@ -14,7 +14,7 @@ exports[`renders correctly for action buttons that is loading 1`] = ` color: inherit; } -.c4 { +.c3 { margin: unset; padding: unset; border: unset; @@ -27,7 +27,7 @@ exports[`renders correctly for action buttons that is loading 1`] = ` color: inherit; } -.c7 { +.c6 { margin: unset; padding: unset; border: unset; @@ -40,7 +40,7 @@ exports[`renders correctly for action buttons that is loading 1`] = ` color: inherit; } -.c10 { +.c9 { margin: unset; padding: unset; border: unset; @@ -54,33 +54,7 @@ exports[`renders correctly for action buttons that is loading 1`] = ` color: #fff !important; } -.c0 { - box-sizing: border-box; - font-family: system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen,Ubuntu,Cantarell,'Fira Sans', 'Droid Sans','Helvetica Neue',sans-serif; - font-size: 16px; - font-weight: 400; - line-height: 1.5; - margin: 0; - padding: 0; - overflow-x: hidden; - -webkit-font-smoothing: antialiased; - text-rendering: optimizeLegibility; - color: #435a6f; - fill: #435a6f; -} - -.c0 *, -.c0 *::before, -.c0 *::after { - box-sizing: inherit; -} - -.c0 *:focus { - outline: 2px solid #7467c0; - outline-offset: 2px; -} - -.c9 { +.c8 { font-size: 20px; -webkit-animation: iVXCSc 0.6s infinite linear; animation: iVXCSc 0.6s infinite linear; @@ -94,7 +68,7 @@ exports[`renders correctly for action buttons that is loading 1`] = ` position: relative; } -.c3 { +.c2 { -webkit-align-items: center; -webkit-box-align: center; -ms-flex-align: center; @@ -120,28 +94,28 @@ exports[`renders correctly for action buttons that is loading 1`] = ` text-decoration: none; } -.c3:focus { +.c2:focus { outline: unset; z-index: 2; box-shadow: #7467c0 0px 0px 0px 2px; } -.c3[disabled] { +.c2[disabled] { cursor: not-allowed; opacity: 0.7; outline: unset; pointer-events: unset; } -.c3:hover { +.c2:hover { background-color: #efefef; } -.c3:hover:active { +.c2:hover:active { background-color: #e3e3e3; } -.c6 { +.c5 { -webkit-align-items: center; -webkit-box-align: center; -ms-flex-align: center; @@ -167,29 +141,29 @@ exports[`renders correctly for action buttons that is loading 1`] = ` text-decoration: none; } -.c6:focus { +.c5:focus { outline: unset; z-index: 2; box-shadow: #7467c0 0px 0px 0px 2px; } -.c6[disabled] { +.c5[disabled] { cursor: not-allowed; opacity: 0.7; outline: unset; pointer-events: unset; } -.c6 { +.c5 { cursor: not-allowed; } -.c6:focus { +.c5:focus { box-shadow: unset !important; outline: unset !important; } -.c8 { +.c7 { position: absolute; display: -webkit-box; display: -webkit-flex; @@ -205,11 +179,11 @@ exports[`renders correctly for action buttons that is loading 1`] = ` justify-content: center; } -.c8 + span { +.c7 + span { opacity: 0; } -.c5 { +.c4 { -webkit-align-items: center; -webkit-box-align: center; -ms-flex-align: center; @@ -220,7 +194,7 @@ exports[`renders correctly for action buttons that is loading 1`] = ` display: inline-flex; } -.c2 { +.c0 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -240,50 +214,46 @@ exports[`renders correctly for action buttons that is loading 1`] = ` margin-top: -0.5rem; } -.c2 > * { +.c0 > * { margin-left: 0.5rem; margin-top: 0.5rem; }
-
- - + -
+ class="c8 c9" + color="primaryInverted" + style="size: default;" + /> +
+ + Submit + + `; @@ -301,7 +271,7 @@ exports[`renders correctly for action buttons with a type 1`] = ` color: inherit; } -.c4 { +.c3 { margin: unset; padding: unset; border: unset; @@ -314,7 +284,7 @@ exports[`renders correctly for action buttons with a type 1`] = ` color: inherit; } -.c7 { +.c6 { margin: unset; padding: unset; border: unset; @@ -327,33 +297,7 @@ exports[`renders correctly for action buttons with a type 1`] = ` color: inherit; } -.c0 { - box-sizing: border-box; - font-family: system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen,Ubuntu,Cantarell,'Fira Sans', 'Droid Sans','Helvetica Neue',sans-serif; - font-size: 16px; - font-weight: 400; - line-height: 1.5; - margin: 0; - padding: 0; - overflow-x: hidden; - -webkit-font-smoothing: antialiased; - text-rendering: optimizeLegibility; - color: #435a6f; - fill: #435a6f; -} - -.c0 *, -.c0 *::before, -.c0 *::after { - box-sizing: inherit; -} - -.c0 *:focus { - outline: 2px solid #7467c0; - outline-offset: 2px; -} - -.c3 { +.c2 { -webkit-align-items: center; -webkit-box-align: center; -ms-flex-align: center; @@ -379,28 +323,28 @@ exports[`renders correctly for action buttons with a type 1`] = ` text-decoration: none; } -.c3:focus { +.c2:focus { outline: unset; z-index: 2; box-shadow: #7467c0 0px 0px 0px 2px; } -.c3[disabled] { +.c2[disabled] { cursor: not-allowed; opacity: 0.7; outline: unset; pointer-events: unset; } -.c3:hover { +.c2:hover { background-color: #efefef; } -.c3:hover:active { +.c2:hover:active { background-color: #e3e3e3; } -.c6 { +.c5 { -webkit-align-items: center; -webkit-box-align: center; -ms-flex-align: center; @@ -426,28 +370,28 @@ exports[`renders correctly for action buttons with a type 1`] = ` text-decoration: none; } -.c6:focus { +.c5:focus { outline: unset; z-index: 2; box-shadow: #7467c0 0px 0px 0px 2px; } -.c6[disabled] { +.c5[disabled] { cursor: not-allowed; opacity: 0.7; outline: unset; pointer-events: unset; } -.c6:hover { +.c5:hover { background-color: #322190; } -.c6:hover:active { +.c5:hover:active { background-color: #2b1c7c; } -.c5 { +.c4 { -webkit-align-items: center; -webkit-box-align: center; -ms-flex-align: center; @@ -458,7 +402,7 @@ exports[`renders correctly for action buttons with a type 1`] = ` display: inline-flex; } -.c2 { +.c0 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -478,42 +422,38 @@ exports[`renders correctly for action buttons with a type 1`] = ` margin-top: -0.5rem; } -.c2 > * { +.c0 > * { margin-left: 0.5rem; margin-top: 0.5rem; }
-
- - + -
+ Submit + +
`; @@ -531,7 +471,7 @@ exports[`renders correctly for action buttons with custom props 1`] = ` color: inherit; } -.c7 { +.c6 { margin: unset; padding: unset; border: unset; @@ -544,7 +484,7 @@ exports[`renders correctly for action buttons with custom props 1`] = ` color: inherit; } -.c4 { +.c3 { margin: unset; padding: unset; border: unset; @@ -557,33 +497,7 @@ exports[`renders correctly for action buttons with custom props 1`] = ` color: inherit; } -.c0 { - box-sizing: border-box; - font-family: system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen,Ubuntu,Cantarell,'Fira Sans', 'Droid Sans','Helvetica Neue',sans-serif; - font-size: 16px; - font-weight: 400; - line-height: 1.5; - margin: 0; - padding: 0; - overflow-x: hidden; - -webkit-font-smoothing: antialiased; - text-rendering: optimizeLegibility; - color: #435a6f; - fill: #435a6f; -} - -.c0 *, -.c0 *::before, -.c0 *::after { - box-sizing: inherit; -} - -.c0 *:focus { - outline: 2px solid #7467c0; - outline-offset: 2px; -} - -.c3 { +.c2 { -webkit-align-items: center; -webkit-box-align: center; -ms-flex-align: center; @@ -609,28 +523,28 @@ exports[`renders correctly for action buttons with custom props 1`] = ` text-decoration: none; } -.c3:focus { +.c2:focus { outline: unset; z-index: 2; box-shadow: #e24c67 0px 0px 0px 2px; } -.c3[disabled] { +.c2[disabled] { cursor: not-allowed; opacity: 0.7; outline: unset; pointer-events: unset; } -.c3:hover { +.c2:hover { background-color: #bd0022; } -.c3:hover:active { +.c2:hover:active { background-color: #a3001e; } -.c6 { +.c5 { -webkit-align-items: center; -webkit-box-align: center; -ms-flex-align: center; @@ -656,20 +570,20 @@ exports[`renders correctly for action buttons with custom props 1`] = ` text-decoration: none; } -.c6:focus { +.c5:focus { outline: unset; z-index: 2; box-shadow: #7467c0 0px 0px 0px 2px; } -.c6[disabled] { +.c5[disabled] { cursor: not-allowed; opacity: 0.7; outline: unset; pointer-events: unset; } -.c5 { +.c4 { -webkit-align-items: center; -webkit-box-align: center; -ms-flex-align: center; @@ -680,7 +594,7 @@ exports[`renders correctly for action buttons with custom props 1`] = ` display: inline-flex; } -.c2 { +.c0 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -700,42 +614,38 @@ exports[`renders correctly for action buttons with custom props 1`] = ` margin-top: -0.5rem; } -.c2 > * { +.c0 > * { margin-left: 0.5rem; margin-top: 0.5rem; }
-
- - + -
+ Submit + +
`; @@ -753,7 +663,7 @@ exports[`renders correctly for action buttons with custom text 1`] = ` color: inherit; } -.c4 { +.c3 { margin: unset; padding: unset; border: unset; @@ -766,7 +676,7 @@ exports[`renders correctly for action buttons with custom text 1`] = ` color: inherit; } -.c7 { +.c6 { margin: unset; padding: unset; border: unset; @@ -779,33 +689,7 @@ exports[`renders correctly for action buttons with custom text 1`] = ` color: inherit; } -.c0 { - box-sizing: border-box; - font-family: system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen,Ubuntu,Cantarell,'Fira Sans', 'Droid Sans','Helvetica Neue',sans-serif; - font-size: 16px; - font-weight: 400; - line-height: 1.5; - margin: 0; - padding: 0; - overflow-x: hidden; - -webkit-font-smoothing: antialiased; - text-rendering: optimizeLegibility; - color: #435a6f; - fill: #435a6f; -} - -.c0 *, -.c0 *::before, -.c0 *::after { - box-sizing: inherit; -} - -.c0 *:focus { - outline: 2px solid #7467c0; - outline-offset: 2px; -} - -.c3 { +.c2 { -webkit-align-items: center; -webkit-box-align: center; -ms-flex-align: center; @@ -831,28 +715,28 @@ exports[`renders correctly for action buttons with custom text 1`] = ` text-decoration: none; } -.c3:focus { +.c2:focus { outline: unset; z-index: 2; box-shadow: #7467c0 0px 0px 0px 2px; } -.c3[disabled] { +.c2[disabled] { cursor: not-allowed; opacity: 0.7; outline: unset; pointer-events: unset; } -.c3:hover { +.c2:hover { background-color: #efefef; } -.c3:hover:active { +.c2:hover:active { background-color: #e3e3e3; } -.c6 { +.c5 { -webkit-align-items: center; -webkit-box-align: center; -ms-flex-align: center; @@ -878,28 +762,28 @@ exports[`renders correctly for action buttons with custom text 1`] = ` text-decoration: none; } -.c6:focus { +.c5:focus { outline: unset; z-index: 2; box-shadow: #7467c0 0px 0px 0px 2px; } -.c6[disabled] { +.c5[disabled] { cursor: not-allowed; opacity: 0.7; outline: unset; pointer-events: unset; } -.c6:hover { +.c5:hover { background-color: #322190; } -.c6:hover:active { +.c5:hover:active { background-color: #2b1c7c; } -.c5 { +.c4 { -webkit-align-items: center; -webkit-box-align: center; -ms-flex-align: center; @@ -910,7 +794,7 @@ exports[`renders correctly for action buttons with custom text 1`] = ` display: inline-flex; } -.c2 { +.c0 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -930,41 +814,37 @@ exports[`renders correctly for action buttons with custom text 1`] = ` margin-top: -0.5rem; } -.c2 > * { +.c0 > * { margin-left: 0.5rem; margin-top: 0.5rem; }
-
- - + -
+ Save + +
`; @@ -982,7 +862,7 @@ exports[`renders correctly for default action buttons 1`] = ` color: inherit; } -.c4 { +.c3 { margin: unset; padding: unset; border: unset; @@ -995,7 +875,7 @@ exports[`renders correctly for default action buttons 1`] = ` color: inherit; } -.c7 { +.c6 { margin: unset; padding: unset; border: unset; @@ -1008,33 +888,7 @@ exports[`renders correctly for default action buttons 1`] = ` color: inherit; } -.c0 { - box-sizing: border-box; - font-family: system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen,Ubuntu,Cantarell,'Fira Sans', 'Droid Sans','Helvetica Neue',sans-serif; - font-size: 16px; - font-weight: 400; - line-height: 1.5; - margin: 0; - padding: 0; - overflow-x: hidden; - -webkit-font-smoothing: antialiased; - text-rendering: optimizeLegibility; - color: #435a6f; - fill: #435a6f; -} - -.c0 *, -.c0 *::before, -.c0 *::after { - box-sizing: inherit; -} - -.c0 *:focus { - outline: 2px solid #7467c0; - outline-offset: 2px; -} - -.c3 { +.c2 { -webkit-align-items: center; -webkit-box-align: center; -ms-flex-align: center; @@ -1060,28 +914,28 @@ exports[`renders correctly for default action buttons 1`] = ` text-decoration: none; } -.c3:focus { +.c2:focus { outline: unset; z-index: 2; box-shadow: #7467c0 0px 0px 0px 2px; } -.c3[disabled] { +.c2[disabled] { cursor: not-allowed; opacity: 0.7; outline: unset; pointer-events: unset; } -.c3:hover { +.c2:hover { background-color: #efefef; } -.c3:hover:active { +.c2:hover:active { background-color: #e3e3e3; } -.c6 { +.c5 { -webkit-align-items: center; -webkit-box-align: center; -ms-flex-align: center; @@ -1107,28 +961,28 @@ exports[`renders correctly for default action buttons 1`] = ` text-decoration: none; } -.c6:focus { +.c5:focus { outline: unset; z-index: 2; box-shadow: #7467c0 0px 0px 0px 2px; } -.c6[disabled] { +.c5[disabled] { cursor: not-allowed; opacity: 0.7; outline: unset; pointer-events: unset; } -.c6:hover { +.c5:hover { background-color: #322190; } -.c6:hover:active { +.c5:hover:active { background-color: #2b1c7c; } -.c5 { +.c4 { -webkit-align-items: center; -webkit-box-align: center; -ms-flex-align: center; @@ -1139,7 +993,7 @@ exports[`renders correctly for default action buttons 1`] = ` display: inline-flex; } -.c2 { +.c0 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -1159,41 +1013,37 @@ exports[`renders correctly for default action buttons 1`] = ` margin-top: -0.5rem; } -.c2 > * { +.c0 > * { margin-left: 0.5rem; margin-top: 0.5rem; }
-
- - + -
+ Submit + +
`; @@ -1211,7 +1061,7 @@ exports[`renders correctly when a palette prop is set 1`] = ` color: inherit; } -.c4 { +.c3 { margin: unset; padding: unset; border: unset; @@ -1224,7 +1074,7 @@ exports[`renders correctly when a palette prop is set 1`] = ` color: inherit; } -.c7 { +.c6 { margin: unset; padding: unset; border: unset; @@ -1237,33 +1087,7 @@ exports[`renders correctly when a palette prop is set 1`] = ` color: inherit; } -.c0 { - box-sizing: border-box; - font-family: system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen,Ubuntu,Cantarell,'Fira Sans', 'Droid Sans','Helvetica Neue',sans-serif; - font-size: 16px; - font-weight: 400; - line-height: 1.5; - margin: 0; - padding: 0; - overflow-x: hidden; - -webkit-font-smoothing: antialiased; - text-rendering: optimizeLegibility; - color: #435a6f; - fill: #435a6f; -} - -.c0 *, -.c0 *::before, -.c0 *::after { - box-sizing: inherit; -} - -.c0 *:focus { - outline: 2px solid #7467c0; - outline-offset: 2px; -} - -.c3 { +.c2 { -webkit-align-items: center; -webkit-box-align: center; -ms-flex-align: center; @@ -1289,28 +1113,28 @@ exports[`renders correctly when a palette prop is set 1`] = ` text-decoration: none; } -.c3:focus { +.c2:focus { outline: unset; z-index: 2; box-shadow: #7467c0 0px 0px 0px 2px; } -.c3[disabled] { +.c2[disabled] { cursor: not-allowed; opacity: 0.7; outline: unset; pointer-events: unset; } -.c3:hover { +.c2:hover { background-color: #efefef; } -.c3:hover:active { +.c2:hover:active { background-color: #e3e3e3; } -.c6 { +.c5 { -webkit-align-items: center; -webkit-box-align: center; -ms-flex-align: center; @@ -1336,28 +1160,28 @@ exports[`renders correctly when a palette prop is set 1`] = ` text-decoration: none; } -.c6:focus { +.c5:focus { outline: unset; z-index: 2; box-shadow: #56748f 0px 0px 0px 2px; } -.c6[disabled] { +.c5[disabled] { cursor: not-allowed; opacity: 0.7; outline: unset; pointer-events: unset; } -.c6:hover { +.c5:hover { background-color: #394d5f; } -.c6:hover:active { +.c5:hover:active { background-color: #30404f; } -.c5 { +.c4 { -webkit-align-items: center; -webkit-box-align: center; -ms-flex-align: center; @@ -1368,7 +1192,7 @@ exports[`renders correctly when a palette prop is set 1`] = ` display: inline-flex; } -.c2 { +.c0 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -1388,40 +1212,36 @@ exports[`renders correctly when a palette prop is set 1`] = ` margin-top: -0.5rem; } -.c2 > * { +.c0 > * { margin-left: 0.5rem; margin-top: 0.5rem; }
-
- - + -
+ Submit + +
`; diff --git a/src/Button/__tests__/__snapshots__/Button.test.js.snap b/src/Button/__tests__/__snapshots__/Button.test.js.snap index 5de9849f4..deee85bef 100644 --- a/src/Button/__tests__/__snapshots__/Button.test.js.snap +++ b/src/Button/__tests__/__snapshots__/Button.test.js.snap @@ -10,7 +10,7 @@ exports[`renders correctly for a button that is loading 1`] = ` font-family: inherit; font-size: 100%; box-sizing: border-box; - background-color: unset; + background-color: #fcfcfc; color: inherit; } @@ -23,11 +23,11 @@ exports[`renders correctly for a button that is loading 1`] = ` font-family: inherit; font-size: 100%; box-sizing: border-box; - background-color: #fcfcfc; + background-color: unset; color: inherit; } -.c6 { +.c5 { margin: unset; padding: unset; border: unset; @@ -41,33 +41,7 @@ exports[`renders correctly for a button that is loading 1`] = ` color: #435a6f !important; } -.c0 { - box-sizing: border-box; - font-family: system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen,Ubuntu,Cantarell,'Fira Sans', 'Droid Sans','Helvetica Neue',sans-serif; - font-size: 16px; - font-weight: 400; - line-height: 1.5; - margin: 0; - padding: 0; - overflow-x: hidden; - -webkit-font-smoothing: antialiased; - text-rendering: optimizeLegibility; - color: #435a6f; - fill: #435a6f; -} - -.c0 *, -.c0 *::before, -.c0 *::after { - box-sizing: inherit; -} - -.c0 *:focus { - outline: 2px solid #7467c0; - outline-offset: 2px; -} - -.c5 { +.c4 { font-size: 20px; -webkit-animation: iVXCSc 0.6s infinite linear; animation: iVXCSc 0.6s infinite linear; @@ -81,7 +55,7 @@ exports[`renders correctly for a button that is loading 1`] = ` position: relative; } -.c2 { +.c0 { -webkit-align-items: center; -webkit-box-align: center; -ms-flex-align: center; @@ -107,29 +81,29 @@ exports[`renders correctly for a button that is loading 1`] = ` text-decoration: none; } -.c2:focus { +.c0:focus { outline: unset; z-index: 2; box-shadow: #7467c0 0px 0px 0px 2px; } -.c2[disabled] { +.c0[disabled] { cursor: not-allowed; opacity: 0.7; outline: unset; pointer-events: unset; } -.c2 { +.c0 { cursor: not-allowed; } -.c2:focus { +.c0:focus { box-shadow: unset !important; outline: unset !important; } -.c4 { +.c2 { position: absolute; display: -webkit-box; display: -webkit-flex; @@ -145,11 +119,11 @@ exports[`renders correctly for a button that is loading 1`] = ` justify-content: center; } -.c4 + span { +.c2 + span { opacity: 0; } -.c7 { +.c6 { -webkit-align-items: center; -webkit-box-align: center; -ms-flex-align: center; @@ -160,47 +134,30 @@ exports[`renders correctly for a button that is loading 1`] = ` display: inline-flex; } -
- -
+ class="c4 c5" + color="defaultInverted" + style="size: default;" + /> + + + Test + + `; exports[`renders correctly for a button with a custom element 1`] = ` .c1 { - margin: unset; - padding: unset; - border: unset; - background: unset; - font: unset; - font-family: inherit; - font-size: 100%; - box-sizing: border-box; - background-color: unset; - color: inherit; -} - -.c3 { margin: unset; padding: unset; border: unset; @@ -214,32 +171,6 @@ exports[`renders correctly for a button with a custom element 1`] = ` } .c0 { - box-sizing: border-box; - font-family: system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen,Ubuntu,Cantarell,'Fira Sans', 'Droid Sans','Helvetica Neue',sans-serif; - font-size: 16px; - font-weight: 400; - line-height: 1.5; - margin: 0; - padding: 0; - overflow-x: hidden; - -webkit-font-smoothing: antialiased; - text-rendering: optimizeLegibility; - color: #435a6f; - fill: #435a6f; -} - -.c0 *, -.c0 *::before, -.c0 *::after { - box-sizing: inherit; -} - -.c0 *:focus { - outline: 2px solid #7467c0; - outline-offset: 2px; -} - -.c2 { -webkit-align-items: center; -webkit-box-align: center; -ms-flex-align: center; @@ -265,28 +196,28 @@ exports[`renders correctly for a button with a custom element 1`] = ` text-decoration: none; } -.c2:focus { +.c0:focus { outline: unset; z-index: 2; box-shadow: #7467c0 0px 0px 0px 2px; } -.c2[disabled] { +.c0[disabled] { cursor: not-allowed; opacity: 0.7; outline: unset; pointer-events: unset; } -.c2:hover { +.c0:hover { background-color: #efefef; } -.c2:hover:active { +.c0:hover:active { background-color: #e3e3e3; } -.c4 { +.c2 { -webkit-align-items: center; -webkit-box-align: center; -ms-flex-align: center; @@ -297,39 +228,22 @@ exports[`renders correctly for a button with a custom element 1`] = ` display: inline-flex; } -
- - - Test - - -
+ Test + + `; exports[`renders correctly for a button with a palette prop set 1`] = ` .c1 { - margin: unset; - padding: unset; - border: unset; - background: unset; - font: unset; - font-family: inherit; - font-size: 100%; - box-sizing: border-box; - background-color: unset; - color: inherit; -} - -.c3 { margin: unset; padding: unset; border: unset; @@ -343,32 +257,6 @@ exports[`renders correctly for a button with a palette prop set 1`] = ` } .c0 { - box-sizing: border-box; - font-family: system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen,Ubuntu,Cantarell,'Fira Sans', 'Droid Sans','Helvetica Neue',sans-serif; - font-size: 16px; - font-weight: 400; - line-height: 1.5; - margin: 0; - padding: 0; - overflow-x: hidden; - -webkit-font-smoothing: antialiased; - text-rendering: optimizeLegibility; - color: #435a6f; - fill: #435a6f; -} - -.c0 *, -.c0 *::before, -.c0 *::after { - box-sizing: inherit; -} - -.c0 *:focus { - outline: 2px solid #7467c0; - outline-offset: 2px; -} - -.c2 { -webkit-align-items: center; -webkit-box-align: center; -ms-flex-align: center; @@ -394,28 +282,28 @@ exports[`renders correctly for a button with a palette prop set 1`] = ` text-decoration: none; } -.c2:focus { +.c0:focus { outline: unset; z-index: 2; box-shadow: #7467c0 0px 0px 0px 2px; } -.c2[disabled] { +.c0[disabled] { cursor: not-allowed; opacity: 0.7; outline: unset; pointer-events: unset; } -.c2:hover { +.c0:hover { background-color: #322190; } -.c2:hover:active { +.c0:hover:active { background-color: #2b1c7c; } -.c4 { +.c2 { -webkit-align-items: center; -webkit-box-align: center; -ms-flex-align: center; @@ -426,21 +314,17 @@ exports[`renders correctly for a button with a palette prop set 1`] = ` display: inline-flex; } -
- -
+ Test + + `; exports[`renders correctly for a colored button that is loading 1`] = ` @@ -453,7 +337,7 @@ exports[`renders correctly for a colored button that is loading 1`] = ` font-family: inherit; font-size: 100%; box-sizing: border-box; - background-color: unset; + background-color: #3926a5; color: inherit; } @@ -466,11 +350,11 @@ exports[`renders correctly for a colored button that is loading 1`] = ` font-family: inherit; font-size: 100%; box-sizing: border-box; - background-color: #3926a5; + background-color: unset; color: inherit; } -.c6 { +.c5 { margin: unset; padding: unset; border: unset; @@ -484,33 +368,7 @@ exports[`renders correctly for a colored button that is loading 1`] = ` color: #fff !important; } -.c0 { - box-sizing: border-box; - font-family: system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen,Ubuntu,Cantarell,'Fira Sans', 'Droid Sans','Helvetica Neue',sans-serif; - font-size: 16px; - font-weight: 400; - line-height: 1.5; - margin: 0; - padding: 0; - overflow-x: hidden; - -webkit-font-smoothing: antialiased; - text-rendering: optimizeLegibility; - color: #435a6f; - fill: #435a6f; -} - -.c0 *, -.c0 *::before, -.c0 *::after { - box-sizing: inherit; -} - -.c0 *:focus { - outline: 2px solid #7467c0; - outline-offset: 2px; -} - -.c5 { +.c4 { font-size: 20px; -webkit-animation: iVXCSc 0.6s infinite linear; animation: iVXCSc 0.6s infinite linear; @@ -524,7 +382,7 @@ exports[`renders correctly for a colored button that is loading 1`] = ` position: relative; } -.c2 { +.c0 { -webkit-align-items: center; -webkit-box-align: center; -ms-flex-align: center; @@ -550,29 +408,29 @@ exports[`renders correctly for a colored button that is loading 1`] = ` text-decoration: none; } -.c2:focus { +.c0:focus { outline: unset; z-index: 2; box-shadow: #7467c0 0px 0px 0px 2px; } -.c2[disabled] { +.c0[disabled] { cursor: not-allowed; opacity: 0.7; outline: unset; pointer-events: unset; } -.c2 { +.c0 { cursor: not-allowed; } -.c2:focus { +.c0:focus { box-shadow: unset !important; outline: unset !important; } -.c4 { +.c2 { position: absolute; display: -webkit-box; display: -webkit-flex; @@ -588,11 +446,11 @@ exports[`renders correctly for a colored button that is loading 1`] = ` justify-content: center; } -.c4 + span { +.c2 + span { opacity: 0; } -.c7 { +.c6 { -webkit-align-items: center; -webkit-box-align: center; -ms-flex-align: center; @@ -603,47 +461,30 @@ exports[`renders correctly for a colored button that is loading 1`] = ` display: inline-flex; } -
- -
+ class="c4 c5" + color="primaryInverted" + style="size: default;" + /> + + + Test + + `; exports[`renders correctly for a default button 1`] = ` .c1 { - margin: unset; - padding: unset; - border: unset; - background: unset; - font: unset; - font-family: inherit; - font-size: 100%; - box-sizing: border-box; - background-color: unset; - color: inherit; -} - -.c3 { margin: unset; padding: unset; border: unset; @@ -657,32 +498,6 @@ exports[`renders correctly for a default button 1`] = ` } .c0 { - box-sizing: border-box; - font-family: system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen,Ubuntu,Cantarell,'Fira Sans', 'Droid Sans','Helvetica Neue',sans-serif; - font-size: 16px; - font-weight: 400; - line-height: 1.5; - margin: 0; - padding: 0; - overflow-x: hidden; - -webkit-font-smoothing: antialiased; - text-rendering: optimizeLegibility; - color: #435a6f; - fill: #435a6f; -} - -.c0 *, -.c0 *::before, -.c0 *::after { - box-sizing: inherit; -} - -.c0 *:focus { - outline: 2px solid #7467c0; - outline-offset: 2px; -} - -.c2 { -webkit-align-items: center; -webkit-box-align: center; -ms-flex-align: center; @@ -708,28 +523,28 @@ exports[`renders correctly for a default button 1`] = ` text-decoration: none; } -.c2:focus { +.c0:focus { outline: unset; z-index: 2; box-shadow: #7467c0 0px 0px 0px 2px; } -.c2[disabled] { +.c0[disabled] { cursor: not-allowed; opacity: 0.7; outline: unset; pointer-events: unset; } -.c2:hover { +.c0:hover { background-color: #efefef; } -.c2:hover:active { +.c0:hover:active { background-color: #e3e3e3; } -.c4 { +.c2 { -webkit-align-items: center; -webkit-box-align: center; -ms-flex-align: center; @@ -740,38 +555,21 @@ exports[`renders correctly for a default button 1`] = ` display: inline-flex; } -
- -
+ Test + + `; exports[`renders correctly for a disabled button 1`] = ` .c1 { - margin: unset; - padding: unset; - border: unset; - background: unset; - font: unset; - font-family: inherit; - font-size: 100%; - box-sizing: border-box; - background-color: unset; - color: inherit; -} - -.c3 { margin: unset; padding: unset; border: unset; @@ -785,32 +583,6 @@ exports[`renders correctly for a disabled button 1`] = ` } .c0 { - box-sizing: border-box; - font-family: system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen,Ubuntu,Cantarell,'Fira Sans', 'Droid Sans','Helvetica Neue',sans-serif; - font-size: 16px; - font-weight: 400; - line-height: 1.5; - margin: 0; - padding: 0; - overflow-x: hidden; - -webkit-font-smoothing: antialiased; - text-rendering: optimizeLegibility; - color: #435a6f; - fill: #435a6f; -} - -.c0 *, -.c0 *::before, -.c0 *::after { - box-sizing: inherit; -} - -.c0 *:focus { - outline: 2px solid #7467c0; - outline-offset: 2px; -} - -.c2 { -webkit-align-items: center; -webkit-box-align: center; -ms-flex-align: center; @@ -836,20 +608,20 @@ exports[`renders correctly for a disabled button 1`] = ` text-decoration: none; } -.c2:focus { +.c0:focus { outline: unset; z-index: 2; box-shadow: #7467c0 0px 0px 0px 2px; } -.c2[disabled] { +.c0[disabled] { cursor: not-allowed; opacity: 0.7; outline: unset; pointer-events: unset; } -.c4 { +.c2 { -webkit-align-items: center; -webkit-box-align: center; -ms-flex-align: center; @@ -860,39 +632,22 @@ exports[`renders correctly for a disabled button 1`] = ` display: inline-flex; } -
- -
+ Test + + `; exports[`renders correctly for a link button 1`] = ` .c1 { - margin: unset; - padding: unset; - border: unset; - background: unset; - font: unset; - font-family: inherit; - font-size: 100%; - box-sizing: border-box; - background-color: unset; - color: inherit; -} - -.c3 { margin: unset; padding: unset; border: unset; @@ -906,32 +661,6 @@ exports[`renders correctly for a link button 1`] = ` } .c0 { - box-sizing: border-box; - font-family: system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen,Ubuntu,Cantarell,'Fira Sans', 'Droid Sans','Helvetica Neue',sans-serif; - font-size: 16px; - font-weight: 400; - line-height: 1.5; - margin: 0; - padding: 0; - overflow-x: hidden; - -webkit-font-smoothing: antialiased; - text-rendering: optimizeLegibility; - color: #435a6f; - fill: #435a6f; -} - -.c0 *, -.c0 *::before, -.c0 *::after { - box-sizing: inherit; -} - -.c0 *:focus { - outline: 2px solid #7467c0; - outline-offset: 2px; -} - -.c2 { -webkit-align-items: center; -webkit-box-align: center; -ms-flex-align: center; @@ -957,20 +686,20 @@ exports[`renders correctly for a link button 1`] = ` text-decoration: none; } -.c2:focus { +.c0:focus { outline: unset; z-index: 2; box-shadow: #7467c0 0px 0px 0px 2px; } -.c2[disabled] { +.c0[disabled] { cursor: not-allowed; opacity: 0.7; outline: unset; pointer-events: unset; } -.c2 { +.c0 { border: 0; background: unset; color: #435a6f; @@ -979,12 +708,12 @@ exports[`renders correctly for a link button 1`] = ` text-decoration: underline; } -.c2:hover { +.c0:hover { color: #000; fill: #000; } -.c4 { +.c2 { -webkit-align-items: center; -webkit-box-align: center; -ms-flex-align: center; @@ -995,21 +724,17 @@ exports[`renders correctly for a link button 1`] = ` display: inline-flex; } -
- -
+ `; exports[`renders correctly for a link button that is loading 1`] = ` @@ -1022,7 +747,7 @@ exports[`renders correctly for a link button that is loading 1`] = ` font-family: inherit; font-size: 100%; box-sizing: border-box; - background-color: unset; + background-color: #fcfcfc; color: inherit; } @@ -1035,11 +760,11 @@ exports[`renders correctly for a link button that is loading 1`] = ` font-family: inherit; font-size: 100%; box-sizing: border-box; - background-color: #fcfcfc; + background-color: unset; color: inherit; } -.c6 { +.c5 { margin: unset; padding: unset; border: unset; @@ -1053,33 +778,7 @@ exports[`renders correctly for a link button that is loading 1`] = ` color: #fcfcfc !important; } -.c0 { - box-sizing: border-box; - font-family: system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen,Ubuntu,Cantarell,'Fira Sans', 'Droid Sans','Helvetica Neue',sans-serif; - font-size: 16px; - font-weight: 400; - line-height: 1.5; - margin: 0; - padding: 0; - overflow-x: hidden; - -webkit-font-smoothing: antialiased; - text-rendering: optimizeLegibility; - color: #435a6f; - fill: #435a6f; -} - -.c0 *, -.c0 *::before, -.c0 *::after { - box-sizing: inherit; -} - -.c0 *:focus { - outline: 2px solid #7467c0; - outline-offset: 2px; -} - -.c5 { +.c4 { font-size: 20px; -webkit-animation: iVXCSc 0.6s infinite linear; animation: iVXCSc 0.6s infinite linear; @@ -1093,7 +792,7 @@ exports[`renders correctly for a link button that is loading 1`] = ` position: relative; } -.c2 { +.c0 { -webkit-align-items: center; -webkit-box-align: center; -ms-flex-align: center; @@ -1119,20 +818,20 @@ exports[`renders correctly for a link button that is loading 1`] = ` text-decoration: none; } -.c2:focus { +.c0:focus { outline: unset; z-index: 2; box-shadow: #7467c0 0px 0px 0px 2px; } -.c2[disabled] { +.c0[disabled] { cursor: not-allowed; opacity: 0.7; outline: unset; pointer-events: unset; } -.c2 { +.c0 { border: 0; background: unset; color: #435a6f; @@ -1141,21 +840,21 @@ exports[`renders correctly for a link button that is loading 1`] = ` text-decoration: underline; } -.c2:hover { +.c0:hover { color: #000; fill: #000; } -.c2 { +.c0 { cursor: not-allowed; } -.c2:focus { +.c0:focus { box-shadow: unset !important; outline: unset !important; } -.c4 { +.c2 { position: absolute; display: -webkit-box; display: -webkit-flex; @@ -1171,11 +870,11 @@ exports[`renders correctly for a link button that is loading 1`] = ` justify-content: center; } -.c4 + span { +.c2 + span { opacity: 0; } -.c7 { +.c6 { -webkit-align-items: center; -webkit-box-align: center; -ms-flex-align: center; @@ -1186,34 +885,30 @@ exports[`renders correctly for a link button that is loading 1`] = ` display: inline-flex; } -
- -
+ class="c4 c5" + color="default" + style="size: default;" + /> + + + Test + + `; exports[`renders correctly for a list of buttons 1`] = ` -.c1 { +.c3 { margin: unset; padding: unset; border: unset; @@ -1222,11 +917,11 @@ exports[`renders correctly for a list of buttons 1`] = ` font-family: inherit; font-size: 100%; box-sizing: border-box; - background-color: unset; + background-color: #fcfcfc; color: inherit; } -.c4 { +.c1 { margin: unset; padding: unset; border: unset; @@ -1235,37 +930,11 @@ exports[`renders correctly for a list of buttons 1`] = ` font-family: inherit; font-size: 100%; box-sizing: border-box; - background-color: #fcfcfc; + background-color: unset; color: inherit; } -.c0 { - box-sizing: border-box; - font-family: system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen,Ubuntu,Cantarell,'Fira Sans', 'Droid Sans','Helvetica Neue',sans-serif; - font-size: 16px; - font-weight: 400; - line-height: 1.5; - margin: 0; - padding: 0; - overflow-x: hidden; - -webkit-font-smoothing: antialiased; - text-rendering: optimizeLegibility; - color: #435a6f; - fill: #435a6f; -} - -.c0 *, -.c0 *::before, -.c0 *::after { - box-sizing: inherit; -} - -.c0 *:focus { - outline: 2px solid #7467c0; - outline-offset: 2px; -} - -.c3 { +.c2 { -webkit-align-items: center; -webkit-box-align: center; -ms-flex-align: center; @@ -1291,28 +960,28 @@ exports[`renders correctly for a list of buttons 1`] = ` text-decoration: none; } -.c3:focus { +.c2:focus { outline: unset; z-index: 2; box-shadow: #7467c0 0px 0px 0px 2px; } -.c3[disabled] { +.c2[disabled] { cursor: not-allowed; opacity: 0.7; outline: unset; pointer-events: unset; } -.c3:hover { +.c2:hover { background-color: #efefef; } -.c3:hover:active { +.c2:hover:active { background-color: #e3e3e3; } -.c5 { +.c4 { -webkit-align-items: center; -webkit-box-align: center; -ms-flex-align: center; @@ -1323,7 +992,7 @@ exports[`renders correctly for a list of buttons 1`] = ` display: inline-flex; } -.c2 { +.c0 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -1343,70 +1012,53 @@ exports[`renders correctly for a list of buttons 1`] = ` margin-top: -0.5rem; } -.c2 > * { +.c0 > * { margin-left: 0.5rem; margin-top: 0.5rem; }
-
- - + - + -
+ Test 3 + +
`; exports[`renders correctly for an outlined button 1`] = ` .c1 { - margin: unset; - padding: unset; - border: unset; - background: unset; - font: unset; - font-family: inherit; - font-size: 100%; - box-sizing: border-box; - background-color: unset; - color: inherit; -} - -.c3 { margin: unset; padding: unset; border: unset; @@ -1420,32 +1072,6 @@ exports[`renders correctly for an outlined button 1`] = ` } .c0 { - box-sizing: border-box; - font-family: system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen,Ubuntu,Cantarell,'Fira Sans', 'Droid Sans','Helvetica Neue',sans-serif; - font-size: 16px; - font-weight: 400; - line-height: 1.5; - margin: 0; - padding: 0; - overflow-x: hidden; - -webkit-font-smoothing: antialiased; - text-rendering: optimizeLegibility; - color: #435a6f; - fill: #435a6f; -} - -.c0 *, -.c0 *::before, -.c0 *::after { - box-sizing: inherit; -} - -.c0 *:focus { - outline: 2px solid #7467c0; - outline-offset: 2px; -} - -.c2 { -webkit-align-items: center; -webkit-box-align: center; -ms-flex-align: center; @@ -1471,40 +1097,40 @@ exports[`renders correctly for an outlined button 1`] = ` text-decoration: none; } -.c2:focus { +.c0:focus { outline: unset; z-index: 2; box-shadow: #7467c0 0px 0px 0px 2px; } -.c2[disabled] { +.c0[disabled] { cursor: not-allowed; opacity: 0.7; outline: unset; pointer-events: unset; } -.c2 { +.c0 { background-color: unset; border: 1px solid #fcfcfc; color: #fcfcfc; fill: #fcfcfc; } -.c2:hover { +.c0:hover { color: #435a6f; fill: #435a6f; } -.c2:hover { +.c0:hover { background-color: #efefef; } -.c2:hover:active { +.c0:hover:active { background-color: #e3e3e3; } -.c4 { +.c2 { -webkit-align-items: center; -webkit-box-align: center; -ms-flex-align: center; @@ -1515,21 +1141,17 @@ exports[`renders correctly for an outlined button 1`] = ` display: inline-flex; } -
- -
+ Test + + `; exports[`renders correctly for an outlined button that is loading 1`] = ` @@ -1542,7 +1164,7 @@ exports[`renders correctly for an outlined button that is loading 1`] = ` font-family: inherit; font-size: 100%; box-sizing: border-box; - background-color: unset; + background-color: #fcfcfc; color: inherit; } @@ -1555,11 +1177,11 @@ exports[`renders correctly for an outlined button that is loading 1`] = ` font-family: inherit; font-size: 100%; box-sizing: border-box; - background-color: #fcfcfc; + background-color: unset; color: inherit; } -.c6 { +.c5 { margin: unset; padding: unset; border: unset; @@ -1573,33 +1195,7 @@ exports[`renders correctly for an outlined button that is loading 1`] = ` color: #fcfcfc !important; } -.c0 { - box-sizing: border-box; - font-family: system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen,Ubuntu,Cantarell,'Fira Sans', 'Droid Sans','Helvetica Neue',sans-serif; - font-size: 16px; - font-weight: 400; - line-height: 1.5; - margin: 0; - padding: 0; - overflow-x: hidden; - -webkit-font-smoothing: antialiased; - text-rendering: optimizeLegibility; - color: #435a6f; - fill: #435a6f; -} - -.c0 *, -.c0 *::before, -.c0 *::after { - box-sizing: inherit; -} - -.c0 *:focus { - outline: 2px solid #7467c0; - outline-offset: 2px; -} - -.c5 { +.c4 { font-size: 20px; -webkit-animation: iVXCSc 0.6s infinite linear; animation: iVXCSc 0.6s infinite linear; @@ -1613,7 +1209,7 @@ exports[`renders correctly for an outlined button that is loading 1`] = ` position: relative; } -.c2 { +.c0 { -webkit-align-items: center; -webkit-box-align: center; -ms-flex-align: center; @@ -1639,41 +1235,41 @@ exports[`renders correctly for an outlined button that is loading 1`] = ` text-decoration: none; } -.c2:focus { +.c0:focus { outline: unset; z-index: 2; box-shadow: #7467c0 0px 0px 0px 2px; } -.c2[disabled] { +.c0[disabled] { cursor: not-allowed; opacity: 0.7; outline: unset; pointer-events: unset; } -.c2 { +.c0 { background-color: unset; border: 1px solid #fcfcfc; color: #fcfcfc; fill: #fcfcfc; } -.c2:hover { +.c0:hover { color: #435a6f; fill: #435a6f; } -.c2 { +.c0 { cursor: not-allowed; } -.c2:focus { +.c0:focus { box-shadow: unset !important; outline: unset !important; } -.c4 { +.c2 { position: absolute; display: -webkit-box; display: -webkit-flex; @@ -1689,11 +1285,11 @@ exports[`renders correctly for an outlined button that is loading 1`] = ` justify-content: center; } -.c4 + span { +.c2 + span { opacity: 0; } -.c7 { +.c6 { -webkit-align-items: center; -webkit-box-align: center; -ms-flex-align: center; @@ -1704,34 +1300,30 @@ exports[`renders correctly for an outlined button that is loading 1`] = ` display: inline-flex; } -
- -
+ class="c4 c5" + color="default" + style="size: default;" + /> + + + Test + + `; exports[`renders correctly for grouped buttons 1`] = ` -.c1 { +.c3 { margin: unset; padding: unset; border: unset; @@ -1740,11 +1332,11 @@ exports[`renders correctly for grouped buttons 1`] = ` font-family: inherit; font-size: 100%; box-sizing: border-box; - background-color: unset; + background-color: #fcfcfc; color: inherit; } -.c4 { +.c1 { margin: unset; padding: unset; border: unset; @@ -1753,37 +1345,11 @@ exports[`renders correctly for grouped buttons 1`] = ` font-family: inherit; font-size: 100%; box-sizing: border-box; - background-color: #fcfcfc; + background-color: unset; color: inherit; } -.c0 { - box-sizing: border-box; - font-family: system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen,Ubuntu,Cantarell,'Fira Sans', 'Droid Sans','Helvetica Neue',sans-serif; - font-size: 16px; - font-weight: 400; - line-height: 1.5; - margin: 0; - padding: 0; - overflow-x: hidden; - -webkit-font-smoothing: antialiased; - text-rendering: optimizeLegibility; - color: #435a6f; - fill: #435a6f; -} - -.c0 *, -.c0 *::before, -.c0 *::after { - box-sizing: inherit; -} - -.c0 *:focus { - outline: 2px solid #7467c0; - outline-offset: 2px; -} - -.c3 { +.c2 { -webkit-align-items: center; -webkit-box-align: center; -ms-flex-align: center; @@ -1809,28 +1375,28 @@ exports[`renders correctly for grouped buttons 1`] = ` text-decoration: none; } -.c3:focus { +.c2:focus { outline: unset; z-index: 2; box-shadow: #7467c0 0px 0px 0px 2px; } -.c3[disabled] { +.c2[disabled] { cursor: not-allowed; opacity: 0.7; outline: unset; pointer-events: unset; } -.c3:hover { +.c2:hover { background-color: #efefef; } -.c3:hover:active { +.c2:hover:active { background-color: #e3e3e3; } -.c5 { +.c4 { -webkit-align-items: center; -webkit-box-align: center; -ms-flex-align: center; @@ -1841,7 +1407,7 @@ exports[`renders correctly for grouped buttons 1`] = ` display: inline-flex; } -.c2 { +.c0 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -1851,92 +1417,88 @@ exports[`renders correctly for grouped buttons 1`] = ` flex-direction: row; } -.c2 > *:not(:first-child):not(:last-child), -.c2 > *:not(:first-child):not(:last-child) .GroupItem-sc-2orogz-0 { +.c0 > *:not(:first-child):not(:last-child), +.c0 > *:not(:first-child):not(:last-child) .GroupItem-sc-2orogz-0 { border-radius: 0; border-left-width: 0; } -.c2 > *:first-child, -.c2 > *:first-child .GroupItem-sc-2orogz-0 { +.c0 > *:first-child, +.c0 > *:first-child .GroupItem-sc-2orogz-0 { border-bottom-right-radius: 0; border-top-right-radius: 0; } -.c2 > *:last-child, -.c2 > *:last-child .GroupItem-sc-2orogz-0 { +.c0 > *:last-child, +.c0 > *:last-child .GroupItem-sc-2orogz-0 { border-top-left-radius: 0; border-left-width: 0; border-bottom-left-radius: 0; } -.c2 > * { +.c0 > * { border-radius: 4px; } -.c2 input:focus, -.c2 select:focus { +.c0 input:focus, +.c0 select:focus { z-index: 1; position: relative; } -.c2 > *:first-child input, -.c2 > *:first-child select { +.c0 > *:first-child input, +.c0 > *:first-child select { border-bottom-right-radius: 0; border-top-right-radius: 0; } -.c2 > *:last-child input, -.c2 > *:last-child select { +.c0 > *:last-child input, +.c0 > *:last-child select { border-top-left-radius: 0; border-bottom-left-radius: 0; } -.c2 > *:not(:first-child):not(:last-child) > input, -.c2 > *:not(:first-child):not(:last-child) > select { +.c0 > *:not(:first-child):not(:last-child) > input, +.c0 > *:not(:first-child):not(:last-child) > select { border-radius: 0; }
-
- - + - + -
+ Test 3 + +
`; diff --git a/src/Card/__tests__/__snapshots__/Card.test.js.snap b/src/Card/__tests__/__snapshots__/Card.test.js.snap index 4dfaba251..092f14ae6 100644 --- a/src/Card/__tests__/__snapshots__/Card.test.js.snap +++ b/src/Card/__tests__/__snapshots__/Card.test.js.snap @@ -12,6 +12,7 @@ exports[`renders correctly for a card with a actions 1`] = ` box-sizing: border-box; background-color: unset; color: inherit; + padding: 1.5rem !important; } .c3 { @@ -25,36 +26,9 @@ exports[`renders correctly for a card with a actions 1`] = ` box-sizing: border-box; background-color: unset; color: inherit; - padding: 1.5rem !important; } .c0 { - box-sizing: border-box; - font-family: system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen,Ubuntu,Cantarell,'Fira Sans', 'Droid Sans','Helvetica Neue',sans-serif; - font-size: 16px; - font-weight: 400; - line-height: 1.5; - margin: 0; - padding: 0; - overflow-x: hidden; - -webkit-font-smoothing: antialiased; - text-rendering: optimizeLegibility; - color: #435a6f; - fill: #435a6f; -} - -.c0 *, -.c0 *::before, -.c0 *::after { - box-sizing: inherit; -} - -.c0 *:focus { - outline: 2px solid #7467c0; - outline-offset: 2px; -} - -.c2 { background-color: white; border-radius: 3px; display: -webkit-inline-box; @@ -67,58 +41,58 @@ exports[`renders correctly for a card with a actions 1`] = ` box-shadow: 0px 2px 4px 0px #e6e6e6,0px 0px 0px 1px #e6e6e6; } -.c6 { +.c5 { font-weight: 700; line-height: 1.2; margin-bottom: 1rem; } -.heading.c6 + .sub-heading { +.heading.c5 + .sub-heading { margin-top: -1rem; } -.c6:last-child { +.c5:last-child { margin-bottom: 0; } -h1.c6 { +h1.c5 { font-size: 3rem; } -h2.c6 { +h2.c5 { font-size: 2.5rem; } -h3.c6 { +h3.c5 { font-size: 2rem; } -h4.c6 { +h4.c5 { font-size: 1.5rem; } -h5.c6 { +h5.c5 { font-size: 1.25rem; } -h6.c6 { +h6.c5 { font-size: 1rem; } -.c6 .c8 { +.c5 .c7 { top: 0.1em; } -.c6 { +.c5 { font-weight: 600; } -.c7 { +.c6 { max-height: 50vh; overflow-y: scroll; } -.c4 { +.c2 { -webkit-align-items: center; -webkit-box-align: center; -ms-flex-align: center; @@ -139,36 +113,36 @@ h6.c6 { width: 100%; } -.c5 { +.c4 { margin-bottom: 0px; } @media (max-width:480px) { - h1.c6 { + h1.c5 { font-size: 2rem; } } @media (max-width:480px) { - h2.c6 { + h2.c5 { font-size: 1.8rem; } } @media (max-width:480px) { - h3.c6 { + h3.c5 { font-size: 1.6rem; } } @media (max-width:480px) { - h4.c6 { + h4.c5 { font-size: 1.4rem; } } @media (max-width:480px) { - h5.c6 { + h5.c5 { font-size: 1.2rem; } } @@ -179,25 +153,21 @@ h6.c6 {
-
-
- This is a title -
+ This is a title + +
-
- test -
+ test
-
- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse diam ipsum, cursus id placerat congue, ultrices eget lectus. Duis posuere, lacus sed tristique commodo, sapien turpis mollis nunc, vestibulum consectetur lectus augue sit amet justo. -
+
+
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse diam ipsum, cursus id placerat congue, ultrices eget lectus. Duis posuere, lacus sed tristique commodo, sapien turpis mollis nunc, vestibulum consectetur lectus augue sit amet justo.
`; @@ -214,6 +184,7 @@ exports[`renders correctly for a card with a footer 1`] = ` box-sizing: border-box; background-color: unset; color: inherit; + padding: 1.5rem !important; } .c3 { @@ -227,36 +198,9 @@ exports[`renders correctly for a card with a footer 1`] = ` box-sizing: border-box; background-color: unset; color: inherit; - padding: 1.5rem !important; } .c0 { - box-sizing: border-box; - font-family: system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen,Ubuntu,Cantarell,'Fira Sans', 'Droid Sans','Helvetica Neue',sans-serif; - font-size: 16px; - font-weight: 400; - line-height: 1.5; - margin: 0; - padding: 0; - overflow-x: hidden; - -webkit-font-smoothing: antialiased; - text-rendering: optimizeLegibility; - color: #435a6f; - fill: #435a6f; -} - -.c0 *, -.c0 *::before, -.c0 *::after { - box-sizing: inherit; -} - -.c0 *:focus { - outline: 2px solid #7467c0; - outline-offset: 2px; -} - -.c2 { background-color: white; border-radius: 3px; display: -webkit-inline-box; @@ -269,58 +213,58 @@ exports[`renders correctly for a card with a footer 1`] = ` box-shadow: 0px 2px 4px 0px #e6e6e6,0px 0px 0px 1px #e6e6e6; } -.c7 { +.c6 { font-weight: 700; line-height: 1.2; margin-bottom: 1rem; } -.heading.c7 + .sub-heading { +.heading.c6 + .sub-heading { margin-top: -1rem; } -.c7:last-child { +.c6:last-child { margin-bottom: 0; } -h1.c7 { +h1.c6 { font-size: 3rem; } -h2.c7 { +h2.c6 { font-size: 2.5rem; } -h3.c7 { +h3.c6 { font-size: 2rem; } -h4.c7 { +h4.c6 { font-size: 1.5rem; } -h5.c7 { +h5.c6 { font-size: 1.25rem; } -h6.c7 { +h6.c6 { font-size: 1rem; } -.c7 .c9 { +.c6 .c8 { top: 0.1em; } -.c7 { +.c6 { font-weight: 600; } -.c4 { +.c2 { max-height: 50vh; overflow-y: scroll; } -.c5 { +.c4 { -webkit-align-items: center; -webkit-box-align: center; -ms-flex-align: center; @@ -341,41 +285,41 @@ h6.c7 { width: 100%; } -.c8 { +.c7 { padding-top: 1.25rem; width: 100%; } -.c6 { +.c5 { margin-bottom: 0px; } @media (max-width:480px) { - h1.c7 { + h1.c6 { font-size: 2rem; } } @media (max-width:480px) { - h2.c7 { + h2.c6 { font-size: 1.8rem; } } @media (max-width:480px) { - h3.c7 { + h3.c6 { font-size: 1.6rem; } } @media (max-width:480px) { - h4.c7 { + h4.c6 { font-size: 1.4rem; } } @media (max-width:480px) { - h5.c7 { + h5.c6 { font-size: 1.2rem; } } @@ -387,27 +331,23 @@ h6.c7 { class="c2 c3" >
-
-
- This is a title -
-
-
- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse diam ipsum, cursus id placerat congue, ultrices eget lectus. Duis posuere, lacus sed tristique commodo, sapien turpis mollis nunc, vestibulum consectetur lectus augue sit amet justo. -
-
- test -
+ This is a title + +
+
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse diam ipsum, cursus id placerat congue, ultrices eget lectus. Duis posuere, lacus sed tristique commodo, sapien turpis mollis nunc, vestibulum consectetur lectus augue sit amet justo. +
+
+ test
@@ -425,6 +365,7 @@ exports[`renders correctly for a default card 1`] = ` box-sizing: border-box; background-color: unset; color: inherit; + padding: 1.5rem !important; } .c3 { @@ -438,36 +379,9 @@ exports[`renders correctly for a default card 1`] = ` box-sizing: border-box; background-color: unset; color: inherit; - padding: 1.5rem !important; } .c0 { - box-sizing: border-box; - font-family: system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen,Ubuntu,Cantarell,'Fira Sans', 'Droid Sans','Helvetica Neue',sans-serif; - font-size: 16px; - font-weight: 400; - line-height: 1.5; - margin: 0; - padding: 0; - overflow-x: hidden; - -webkit-font-smoothing: antialiased; - text-rendering: optimizeLegibility; - color: #435a6f; - fill: #435a6f; -} - -.c0 *, -.c0 *::before, -.c0 *::after { - box-sizing: inherit; -} - -.c0 *:focus { - outline: 2px solid #7467c0; - outline-offset: 2px; -} - -.c2 { background-color: white; border-radius: 3px; display: -webkit-inline-box; @@ -480,58 +394,58 @@ exports[`renders correctly for a default card 1`] = ` box-shadow: 0px 2px 4px 0px #e6e6e6,0px 0px 0px 1px #e6e6e6; } -.c7 { +.c6 { font-weight: 700; line-height: 1.2; margin-bottom: 1rem; } -.heading.c7 + .sub-heading { +.heading.c6 + .sub-heading { margin-top: -1rem; } -.c7:last-child { +.c6:last-child { margin-bottom: 0; } -h1.c7 { +h1.c6 { font-size: 3rem; } -h2.c7 { +h2.c6 { font-size: 2.5rem; } -h3.c7 { +h3.c6 { font-size: 2rem; } -h4.c7 { +h4.c6 { font-size: 1.5rem; } -h5.c7 { +h5.c6 { font-size: 1.25rem; } -h6.c7 { +h6.c6 { font-size: 1rem; } -.c7 .c8 { +.c6 .c7 { top: 0.1em; } -.c7 { +.c6 { font-weight: 600; } -.c4 { +.c2 { max-height: 50vh; overflow-y: scroll; } -.c5 { +.c4 { -webkit-align-items: center; -webkit-box-align: center; -ms-flex-align: center; @@ -552,36 +466,36 @@ h6.c7 { width: 100%; } -.c6 { +.c5 { margin-bottom: 0px; } @media (max-width:480px) { - h1.c7 { + h1.c6 { font-size: 2rem; } } @media (max-width:480px) { - h2.c7 { + h2.c6 { font-size: 1.8rem; } } @media (max-width:480px) { - h3.c7 { + h3.c6 { font-size: 1.6rem; } } @media (max-width:480px) { - h4.c7 { + h4.c6 { font-size: 1.4rem; } } @media (max-width:480px) { - h5.c7 { + h5.c6 { font-size: 1.2rem; } } @@ -593,22 +507,18 @@ h6.c7 { class="c2 c3" >
-
-
- This is a title -
-
-
- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse diam ipsum, cursus id placerat congue, ultrices eget lectus. Duis posuere, lacus sed tristique commodo, sapien turpis mollis nunc, vestibulum consectetur lectus augue sit amet justo. -
+ This is a title + +
+
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse diam ipsum, cursus id placerat congue, ultrices eget lectus. Duis posuere, lacus sed tristique commodo, sapien turpis mollis nunc, vestibulum consectetur lectus augue sit amet justo.
diff --git a/src/Checkbox/__tests__/__snapshots__/Checkbox.test.js.snap b/src/Checkbox/__tests__/__snapshots__/Checkbox.test.js.snap index cc7d9cbdc..185f0f99b 100644 --- a/src/Checkbox/__tests__/__snapshots__/Checkbox.test.js.snap +++ b/src/Checkbox/__tests__/__snapshots__/Checkbox.test.js.snap @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`renders correctly for a basic checkbox 1`] = ` -.c1 { +.c2 { margin: unset; padding: unset; border: unset; @@ -14,7 +14,7 @@ exports[`renders correctly for a basic checkbox 1`] = ` color: inherit; } -.c5 { +.c4 { margin: unset; padding: unset; border: unset; @@ -27,7 +27,7 @@ exports[`renders correctly for a basic checkbox 1`] = ` color: inherit; } -.c9 { +.c8 { margin: unset; padding: unset; border: unset; @@ -41,44 +41,18 @@ exports[`renders correctly for a basic checkbox 1`] = ` margin-left: 0.5rem !important; } -.c0 { - box-sizing: border-box; - font-family: system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen,Ubuntu,Cantarell,'Fira Sans', 'Droid Sans','Helvetica Neue',sans-serif; - font-size: 16px; - font-weight: 400; - line-height: 1.5; - margin: 0; - padding: 0; - overflow-x: hidden; - -webkit-font-smoothing: antialiased; - text-rendering: optimizeLegibility; - color: #435a6f; - fill: #435a6f; -} - -.c0 *, -.c0 *::before, -.c0 *::after { - box-sizing: inherit; -} - -.c0 *:focus { - outline: 2px solid #7467c0; - outline-offset: 2px; -} - -abbr.c8 { +abbr.c7 { border-bottom: 1px dotted; cursor: help; -webkit-text-decoration: none; text-decoration: none; } -i.c8 { +i.c7 { font-style: italic; } -kbd.c8 { +kbd.c7 { background: #454d5d; border-radius: 0.1rem; color: #fff; @@ -86,50 +60,50 @@ kbd.c8 { padding: 0.1rem 0.2rem; } -mark.c8 { +mark.c7 { background: #ffe9b3; border-radius: 0.1rem; padding: 0.1rem 0.2rem; } -strong.c8 { +strong.c7 { font-weight: bold; } -sub.c8, -sup.c8 { +sub.c7, +sup.c7 { font-size: 0.8em; vertical-align: baseline; } -ins.c8, -u.c8 { +ins.c7, +u.c7 { -webkit-text-decoration-skip: ink edges; text-decoration-skip: ink edges; } -i.c8, -cite.c8, -var.c8, -em.c8 { +i.c7, +cite.c7, +var.c7, +em.c7 { font-style: italic; } -kbd.c8, -pre.c8, -samp.c8 { +kbd.c7, +pre.c7, +samp.c7 { font-family: 'SF Mono','Segoe UI Mono','Roboto Mono',Menlo,Courier,monospace; } -.c8 .c10 { +.c7 .c9 { top: 0.1em; } -.c3 { +.c1 { display: inline-block; } -.c7 { +.c6 { border: 1px solid #bdbdbd; box-shadow: inset 0px 1px 2px #e5e5e5; border-radius: 0.2em; @@ -138,7 +112,7 @@ samp.c8 { width: 1em; } -.c4 { +.c3 { -webkit-clip: rect(0,0,0,0); clip: rect(0,0,0,0); height: 1px; @@ -148,26 +122,26 @@ samp.c8 { width: 1px; } -.c4[disabled] + .c6 { +.c3[disabled] + .c5 { background-color: #f2f2f2; box-shadow: unset; } -.c4:checked:focus + .c6 { +.c3:checked:focus + .c5 { border-color: #7467c0; box-shadow: #7467c0 0px 0px 0px 1px !important; } -.c4:focus + .c6 { +.c3:focus + .c5 { border-color: #7467c0; box-shadow: #7467c0 0px 0px 0px 1px !important; } -.c4:not([disabled]):checked + .c6 { +.c3:not([disabled]):checked + .c5 { border-color: #7467c0; } -.c4:checked + .c6::before { +.c3:checked + .c5::before { background-clip: padding-box; content: ''; left: calc(50% - 3px); @@ -175,7 +149,7 @@ samp.c8 { position: absolute; } -.c4:checked + .c6::before { +.c3:checked + .c5::before { border: 0.1rem solid #7467c0; border-left-width: 0; border-top-width: 0; @@ -186,11 +160,11 @@ samp.c8 { width: 6px; } -.c4[disabled]:checked + .c6::before { +.c3[disabled]:checked + .c5::before { border-color: #9a9a9a; } -.c2 { +.c0 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -201,33 +175,29 @@ samp.c8 { align-items: center; } -
-