Commit 8012789f authored by Sam Chen's avatar Sam Chen Committed by GitHub

fix: fixes Popover arrow positioning (#4119)

fix: fix arrow position
parent 40137434
...@@ -26,6 +26,7 @@ const Arrow = styled.div` ...@@ -26,6 +26,7 @@ const Arrow = styled.div`
position: absolute; position: absolute;
width: 8px; width: 8px;
height: 8px; height: 8px;
box-sizing: border-box;
z-index: 9998; z-index: 9998;
content: ''; content: '';
...@@ -35,7 +36,7 @@ const Arrow = styled.div` ...@@ -35,7 +36,7 @@ const Arrow = styled.div`
} }
&.arrow-top { &.arrow-top {
bottom: -5px; bottom: -4px;
::before { ::before {
border-top: none; border-top: none;
border-left: none; border-left: none;
...@@ -43,7 +44,7 @@ const Arrow = styled.div` ...@@ -43,7 +44,7 @@ const Arrow = styled.div`
} }
&.arrow-bottom { &.arrow-bottom {
top: -5px; top: -4px;
::before { ::before {
border-bottom: none; border-bottom: none;
border-right: none; border-right: none;
...@@ -51,7 +52,7 @@ const Arrow = styled.div` ...@@ -51,7 +52,7 @@ const Arrow = styled.div`
} }
&.arrow-left { &.arrow-left {
right: -5px; right: -4px;
::before { ::before {
border-bottom: none; border-bottom: none;
...@@ -60,7 +61,7 @@ const Arrow = styled.div` ...@@ -60,7 +61,7 @@ const Arrow = styled.div`
} }
&.arrow-right { &.arrow-right {
left: -5px; left: -4px;
::before { ::before {
border-right: none; border-right: none;
border-top: none; border-top: none;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment