Fix z-index issue on dropdown (#6160)

Recently, we've forced all dropdown menu to be displayed in portal. This
loses the z-index hieararchy structure and forces us to specify a higher
z-index in order for dropdown menus to be displayed on top
This commit is contained in:
Charles Bochet
2024-07-08 16:22:46 +02:00
committed by GitHub
parent 9ba211055a
commit 54794b5197

View File

@ -24,7 +24,7 @@ const StyledDropdownMenu = styled.div<{
display: flex;
flex-direction: column;
z-index: 1;
z-index: 30;
width: ${({ width = 160 }) =>
typeof width === 'number' ? `${width}px` : width};
`;