From 5a4098d75b43f030b876c3deb78a680e18b2a4e9 Mon Sep 17 00:00:00 2001 From: Valerii Sidorenko Date: Mon, 16 Jan 2023 12:46:47 +0100 Subject: [PATCH] fix(Popup): return shadow on root element (#479) --- src/components/Popup/Popup.scss | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/src/components/Popup/Popup.scss b/src/components/Popup/Popup.scss index a155e515e7..d7332113c9 100644 --- a/src/components/Popup/Popup.scss +++ b/src/components/Popup/Popup.scss @@ -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 + * {