Skip to content

Commit

Permalink
fix(Popup): return shadow on root element (#479)
Browse files Browse the repository at this point in the history
  • Loading branch information
ValeraS authored Jan 16, 2023
1 parent 2a057cb commit 5a4098d
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions src/components/Popup/Popup.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,22 +22,10 @@ $transition-distance: 10px;
animation-fill-mode: forwards;
border-radius: 4px;
background-color: var(--yc-popup-background-color);
box-shadow: 0 0 0 var(--yc-popup-border-width) var(--yc-popup-border-color),
0 8px 20px var(--yc-popup-border-width) var(--yc-color-sfx-shadow);
outline: none;

&::before {
content: '';
position: absolute;
z-index: -1;
top: 0;
right: 0;
bottom: 0;
left: 0;

border-radius: inherit;
box-shadow: 0 0 0 var(--yc-popup-border-width) var(--yc-popup-border-color),
0 8px 20px var(--yc-popup-border-width) var(--yc-color-sfx-shadow);
}

// Corners rounding for content
& > :first-child:not(&__arrow),
& > &__arrow + * {
Expand Down

0 comments on commit 5a4098d

Please sign in to comment.