diff --git a/package.json b/package.json index b6b6b5e8cf..cc9b94b143 100644 --- a/package.json +++ b/package.json @@ -112,8 +112,11 @@ "@types/jest-axe": "^3.2.2", "@types/jscodeshift": "^0.7.1", "@types/lodash": "^4.14.149", + "@types/no-scroll": "^2.1.0", "@types/react": "^16.9.32", "@types/react-dom": "^16.9.6", + "@types/react-modal": "^3.10.5", + "@types/recompose": "^0.30.7", "audit-ci": "^2.1.0", "babel-eslint": "^10.0.1", "babel-jest": "^25.0.0", diff --git a/src/__snapshots__/storyshots.spec.js.snap b/src/__snapshots__/storyshots.spec.js.snap index 6767bafa75..f1a1dd0673 100644 --- a/src/__snapshots__/storyshots.spec.js.snap +++ b/src/__snapshots__/storyshots.spec.js.snap @@ -6934,7 +6934,7 @@ exports[`Storyshots Components/Modal/Embedded Base 1`] = ` }
Hello World!
@@ -6955,13 +6955,7 @@ exports[`Storyshots Components/Modal/Embedded With Custom Styles 1`] = ` } } -.circuit-7 { - width: 100%; - padding: 0; - height: 50vh; -} - -.circuit-5 { +.circuit-3 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -6998,20 +6992,20 @@ exports[`Storyshots Components/Modal/Embedded With Custom Styles 1`] = ` padding: 24px 18px; } -.circuit-3 { +.circuit-2 { height: 100%; width: 50%; background: no-repeat center / cover url('https://source.unsplash.com/random'); }

@@ -7210,35 +7204,6 @@ exports[`Storyshots Components/Modal/Embedded With Footer 1`] = ` } } -.circuit-8 { - display: block; - width: 100%; - margin-top: 24px; -} - -@media (min-width:480px) { - .circuit-8 { - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - margin-top: 16px; - } -} - -@media (min-width:480px) { - .circuit-8 { - -webkit-box-pack: end; - -webkit-justify-content: flex-end; - -ms-flex-pack: end; - justify-content: flex-end; - } -} - .circuit-3 { font-weight: 400; margin-bottom: 16px; @@ -7253,7 +7218,7 @@ exports[`Storyshots Components/Modal/Embedded With Footer 1`] = ` } } -.circuit-10 { +.circuit-9 { background-color: #FFFFFF; border-radius: 4px; display: -webkit-box; @@ -7273,7 +7238,7 @@ exports[`Storyshots Components/Modal/Embedded With Footer 1`] = ` } @media (max-width:479px) { - .circuit-10 { + .circuit-9 { border-bottom-left-radius: 0; border-bottom-right-radius: 0; min-width: initial; @@ -7281,8 +7246,44 @@ exports[`Storyshots Components/Modal/Embedded With Footer 1`] = ` } } +.circuit-8 { + display: block; + width: 100%; + margin-top: 24px; + position: -webkit-sticky; + position: sticky; + bottom: 0; + margin-top: 0; + padding-top: 24px; + padding-bottom: 12px; + background: #FFFFFF; +} + +@media (min-width:480px) { + .circuit-8 { + -webkit-align-items: center; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + margin-top: 16px; + } +} + +@media (min-width:480px) { + .circuit-8 { + -webkit-box-pack: end; + -webkit-justify-content: flex-end; + -ms-flex-pack: end; + justify-content: flex-end; + } +} +