✨ Innovative and open-source visualization application that transforms various data formats, such as JSON, YAML, XML and CSV into interactive graphs.
fix tooltip z-index
AykutSaracef8bec4c2a83
diff --git a/src/components/ErrorContainer/ErrorContainer.tsx b/src/components/ErrorContainer/ErrorContainer.tsxindex 1eac29dc..a02da147 100644--- a/src/components/ErrorContainer/ErrorContainer.tsx+++ b/src/components/ErrorContainer/ErrorContainer.tsx@@ -18,7 +18,7 @@ interface ErrorContainerProps {}const StyledErrorWrapper = styled.div`- z-index: 5;+ z-index: 1;`;const StyledErrorExpand = styled.button<{ error: boolean }>`@@ -29,7 +29,8 @@ const StyledErrorExpand = styled.button<{ error: boolean }>`border-radius: 0;justify-content: space-between;align-items: center;- color: ${({ theme, error }) => (error ? theme.TEXT_DANGER : theme.TEXT_POSITIVE)};+ color: ${({ theme, error }) =>+ error ? theme.TEXT_DANGER : theme.TEXT_POSITIVE};pointer-events: ${({ error }) => !error && "none"};background: ${({ theme }) => theme.BACKGROUND_SECONDARY};box-shadow: 0 1px 0px ${({ theme }) => theme.BACKGROUND_TERTIARY};diff --git a/src/components/Tooltip/index.tsx b/src/components/Tooltip/index.tsxindex cd2019f4..5344286f 100644--- a/src/components/Tooltip/index.tsx+++ b/src/components/Tooltip/index.tsx@@ -29,6 +29,18 @@ const StyledTooltip = styled.div<{ visible: boolean }>`box-shadow: 0 1px 2px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.07),0 4px 8px rgba(0, 0, 0, 0.07), 0 8px 16px rgba(0, 0, 0, 0.07),0 16px 32px rgba(0, 0, 0, 0.07), 0 32px 64px rgba(0, 0, 0, 0.07);++ &::after {+ content: "";+ position: absolute;+ top: 0;+ left: 0;+ transform: translate(-100%, 50%);+ border-width: 8px;+ border-style: solid;+ border-color: transparent ${({ theme }) => theme.BACKGROUND_PRIMARY}+ transparent transparent;+ }`;const StyledChildren = styled.div``;