From 383d9a60858892d15e735f804b36a3a97a44d26e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Rialland?= Date: Thu, 3 Nov 2022 12:50:20 +0100 Subject: [PATCH] Add comment for zindex --- site/source/design-system/popover/Popover.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/site/source/design-system/popover/Popover.tsx b/site/source/design-system/popover/Popover.tsx index 4114f276c..0ee7082f3 100644 --- a/site/source/design-system/popover/Popover.tsx +++ b/site/source/design-system/popover/Popover.tsx @@ -149,16 +149,16 @@ const fromtop = keyframes` from { transform: translateY(-10px)} to { transform: translateY(0px)} ` -const Underlay = styled.div<{ - $offsetTop: number | null -}>` + +type UnderlayProps = { $offsetTop: number | null } +const Underlay = styled.div` position: fixed; top: 0; right: 0; bottom: 0; left: 0; overflow: auto; - z-index: 200; + z-index: 200; // to be in front of the menu of the Publicodes doc background: rgba(255, 255, 255, 0.5); animation: ${appear} 0.2s; display: flex;