From 1092bc2c58b2517022982e11fcca83a5c85d9bda Mon Sep 17 00:00:00 2001 From: Brendan Wong <35351983+LunrEclipse@users.noreply.github.com> Date: Thu, 27 Jul 2023 13:22:03 -0400 Subject: [PATCH] fix: collision of network banner and swap settings (#6910) * change z-index of network banner * change to use pointer-events rather than deprecated value --- src/components/NetworkAlert/NetworkAlert.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/NetworkAlert/NetworkAlert.tsx b/src/components/NetworkAlert/NetworkAlert.tsx index 0c7b433dfa..23a645c1e5 100644 --- a/src/components/NetworkAlert/NetworkAlert.tsx +++ b/src/components/NetworkAlert/NetworkAlert.tsx @@ -7,7 +7,6 @@ import styled from 'styled-components/macro' import { ExternalLink, HideSmall } from 'theme' import { colors } from 'theme/colors' import { useDarkModeManager } from 'theme/components/ThemeToggle' -import { Z_INDEX } from 'theme/zIndex' import { AutoRow } from '../Row' @@ -112,6 +111,7 @@ const ContentWrapper = styled.div<{ chainId: NetworkAlertChains; darkMode: boole position: absolute; transform: rotate(25deg) translate(-90px, -40px); width: 300px; + pointer-events: none; } ` const Header = styled.h2` @@ -130,7 +130,6 @@ const LinkOutToBridge = styled(ExternalLink)` padding: 6px 8px; text-decoration: none !important; width: 100%; - z-index: ${Z_INDEX.hover}; ` const StyledArrowUpRight = styled(ArrowUpRight)`