Skip to content

Commit

Permalink
Popover consolidate se23 styles
Browse files Browse the repository at this point in the history
  • Loading branch information
gwyneplaine committed Aug 18, 2023
1 parent acee2f6 commit 7f217e1
Showing 1 changed file with 6 additions and 23 deletions.
29 changes: 6 additions & 23 deletions polaris-react/src/components/Popover/Popover.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,12 @@ $vertical-motion-offset: -5px;
.Popover {
max-width: calc(100vw - var(--p-space-8));
margin: $visible-portion-of-arrow var(--p-space-2) var(--p-space-4);
box-shadow: var(--p-shadow-xl);
border-radius: var(--p-border-radius-2);
will-change: left, top;

#{$se23} & {
@include shadow-bevel(
$boxShadow: var(--p-shadow-md),
$borderRadius: var(--p-border-radius-3),
$zIndex: 2
);
}
@include shadow-bevel(
$boxShadow: var(--p-shadow-md),
$borderRadius: var(--p-border-radius-3),
$zIndex: 2
);
}

.PopoverOverlay {
Expand Down Expand Up @@ -64,16 +59,12 @@ $vertical-motion-offset: -5px;
position: relative;
overflow: hidden;
background: var(--p-color-bg);
border-radius: var(--p-space-2);
border-radius: var(--p-space-3);

/* Prevent Scrollable's box shadows overflowing the rounded corners of this
* element on Safari prior to tech preview version 156.
* See: https://bugs.webkit.org/show_bug.cgi?id=68196 */
isolation: isolate;

#{$se23} & {
border-radius: var(--p-space-3);
}
}

.Content {
Expand Down Expand Up @@ -102,14 +93,6 @@ $vertical-motion-offset: -5px;
flex: 1 1 auto;
max-width: 100%;

+ .Pane {
border-top: var(--p-border-width-1) solid var(--p-color-border-subdued);

#{$se23} & {
border-top: none;
}
}

&:focus {
outline: none;
}
Expand Down

0 comments on commit 7f217e1

Please sign in to comment.