diff --git a/packages/components/src/ui/popover/test/__snapshots__/index.js.snap b/packages/components/src/ui/popover/test/__snapshots__/index.js.snap index ed81e30a217ff3..13ee6a46efc129 100644 --- a/packages/components/src/ui/popover/test/__snapshots__/index.js.snap +++ b/packages/components/src/ui/popover/test/__snapshots__/index.js.snap @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`props should render correctly 1`] = ` -.emotion-17.emotion-17.emotion-17.emotion-17.emotion-17.emotion-17.emotion-17 { +.emotion-16.emotion-16.emotion-16.emotion-16.emotion-16.emotion-16.emotion-16 { background-color: #ffffff; background-color: var(--wp-g2-surface-color); color: #1e1e1e; @@ -11,43 +11,7 @@ exports[`props should render correctly 1`] = ` --wp-g2-surface-background-size-dotted: 11px; } -.emotion-1.emotion-1.emotion-1.emotion-1.emotion-1.emotion-1.emotion-1 { - height: 100%; - overflow-x: hidden; - overflow-y: auto; -} - -@media only screen and ( min-device-width:40em ) { - .emotion-1.emotion-1.emotion-1.emotion-1.emotion-1.emotion-1.emotion-1::-webkit-scrollbar { - height: 12px; - width: 12px; - } - - .emotion-1.emotion-1.emotion-1.emotion-1.emotion-1.emotion-1.emotion-1::-webkit-scrollbar-track { - background-color: transparent; - } - - .emotion-1.emotion-1.emotion-1.emotion-1.emotion-1.emotion-1.emotion-1::-webkit-scrollbar-track { - background: rgba(0, 0, 0, 0.04); - background: var(--wp-g2-color-scrollbar-track); - border-radius: 8px; - } - - .emotion-1.emotion-1.emotion-1.emotion-1.emotion-1.emotion-1.emotion-1::-webkit-scrollbar-thumb { - background-clip: padding-box; - background-color: rgba(0, 0, 0, 0.2); - background-color: var(--wp-g2-color-scrollbar-thumb); - border: 2px solid rgba( 0,0,0,0 ); - border-radius: 7px; - } - - .emotion-1.emotion-1.emotion-1.emotion-1.emotion-1.emotion-1.emotion-1:hover::-webkit-scrollbar-thumb { - background-color: rgba(0, 0, 0, 0.5); - background-color: var(--wp-g2-color-scrollbar-thumb-hover); - } -} - -.emotion-7.emotion-7.emotion-7.emotion-7.emotion-7.emotion-7.emotion-7 { +.emotion-6.emotion-6.emotion-6.emotion-6.emotion-6.emotion-6.emotion-6 { border-radius: inherit; bottom: 0; box-shadow: 0 1px 2px 0 rgba(0 ,0,0,0.05); @@ -62,7 +26,7 @@ exports[`props should render correctly 1`] = ` transition: box-shadow var(--wp-g2-transition-duration) var(--wp-g2-transition-timing-function); } -.emotion-12.emotion-12.emotion-12.emotion-12.emotion-12.emotion-12.emotion-12 { +.emotion-11.emotion-11.emotion-11.emotion-11.emotion-11.emotion-11.emotion-11 { border-radius: inherit; bottom: 0; box-shadow: 0 5px 10px 0 rgba(0 ,0,0,0.25); @@ -77,7 +41,7 @@ exports[`props should render correctly 1`] = ` transition: box-shadow var(--wp-g2-transition-duration) var(--wp-g2-transition-timing-function); } -.emotion-6 { +.emotion-5 { background: transparent; display: block; margin: 0 !important; @@ -86,26 +50,56 @@ exports[`props should render correctly 1`] = ` will-change: box-shadow; } -.emotion-16 { +.emotion-15 { box-shadow: 0 0 0 1px rgba(0,0,0,0.1); outline: none; border-radius: 2px; } -.emotion-16 .components-card-body { +.emotion-15 .components-card-body { max-height: 80vh; } -.emotion-8 { +.emotion-7 { border-radius: 2px; } .emotion-0 { + height: 100%; + overflow-x: hidden; + overflow-y: auto; height: auto; max-height: 100%; padding: calc(4px * 3) calc(4px * 3); } +@media only screen and ( min-device-width:40em ) { + .emotion-0::-webkit-scrollbar { + height: 12px; + width: 12px; + } + + .emotion-0::-webkit-scrollbar-track { + background-color: transparent; + } + + .emotion-0::-webkit-scrollbar-track { + background: rgba(0,0,0,0.04); + border-radius: 8px; + } + + .emotion-0::-webkit-scrollbar-thumb { + background-clip: padding-box; + background-color: rgba(0,0,0,0.2); + border: 2px solid rgba( 0,0,0,0 ); + border-radius: 7px; + } + + .emotion-0:hover::-webkit-scrollbar-thumb { + background-color: rgba(0,0,0,0.5); + } +} + .emotion-0:first-of-type { border-top-left-radius: 2px; border-top-right-radius: 2px; @@ -117,12 +111,12 @@ exports[`props should render correctly 1`] = ` }