From 788066b31d7d7527f521632fddd28d7b2251ad09 Mon Sep 17 00:00:00 2001 From: Marco Ciampini Date: Wed, 28 Aug 2024 20:40:32 +0200 Subject: [PATCH] Move z-index styles to inner wrapper --- packages/components/src/dropdown-menu-v2/styles.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/components/src/dropdown-menu-v2/styles.ts b/packages/components/src/dropdown-menu-v2/styles.ts index b641a351e7cad4..de38455707c173 100644 --- a/packages/components/src/dropdown-menu-v2/styles.ts +++ b/packages/components/src/dropdown-menu-v2/styles.ts @@ -64,9 +64,6 @@ export const MenuPopoverOuterWrapper = styled.div< Pick< DropdownMenuContext, 'variant' > >` position: relative; - /* Same as popover component */ - /* TODO: is there a way to read the sass variable? */ - z-index: 1000000; background-color: ${ COLORS.ui.background }; border-radius: ${ CONFIG.radiusMedium }; @@ -103,6 +100,9 @@ export const MenuPopoverOuterWrapper = styled.div< export const MenuPopoverInnerWrapper = styled.div` position: relative; + /* Same as popover component */ + /* TODO: is there a way to read the sass variable? */ + z-index: 1000000; display: grid; grid-template-columns: ${ GRID_TEMPLATE_COLS };