Skip to content

Commit 171b9f4

Browse files
committed
Update Drift defaults to match provider
1 parent 28d042f commit 171b9f4

1 file changed

Lines changed: 8 additions & 11 deletions

File tree

src/components/Drift/index.tsx

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const styles: {
1414
fontSize: 16,
1515
display: 'flex',
1616
alignItems: 'flex-end',
17-
padding: '.75rem',
17+
padding: '12px',
1818
flexDirection: 'column'
1919
},
2020
button: {
@@ -24,8 +24,8 @@ const styles: {
2424
alignItems: 'center',
2525
fill: '#fff',
2626
cursor: 'pointer',
27-
height: 52,
28-
width: 52,
27+
height: '56px',
28+
width: '56px',
2929
borderRadius: '.3125rem',
3030
boxShadow: '0 2px 6px 0 rgba(0,0,0,.4)',
3131
overflow: 'hidden',
@@ -56,9 +56,7 @@ const Drift = ({
5656
const [positionStyles, setPositionStyles] = useState<CSSProperties>({
5757
zIndex: 2147483648,
5858
position: 'fixed',
59-
display: 'block',
60-
height: '60px !important',
61-
width: '76px !important'
59+
display: 'block'
6260
})
6361

6462
useEffect(() => {
@@ -96,8 +94,8 @@ const Drift = ({
9694
>
9795
{icon === 'A' ? (
9896
<svg
99-
width="20"
100-
height="20"
97+
width="24"
98+
height="24"
10199
viewBox="0 0 20 20"
102100
focusable="false"
103101
aria-hidden="true"
@@ -106,10 +104,9 @@ const Drift = ({
106104
}}
107105
>
108106
<path
107+
fill="#FFFFFF"
109108
d="M4.583 14.894l-3.256 3.78c-.7.813-1.26.598-1.25-.46a10689.413 10689.413 0 0 1 .035-4.775V4.816a3.89 3.89 0 0 1 3.88-3.89h12.064a3.885 3.885 0 0 1 3.882 3.89v6.185a3.89 3.89 0 0 1-3.882 3.89H4.583z"
110-
fill="rgb(255, 255, 255)"
111-
fillRule="evenodd"
112-
/>
109+
></path>
113110
</svg>
114111
) : icon === 'B' ? (
115112
<svg

0 commit comments

Comments
 (0)