Skip to content

Commit 57c6691

Browse files
committed
Update Userlike defaults to match the provider
1 parent dd410bb commit 57c6691

2 files changed

Lines changed: 7 additions & 9 deletions

File tree

src/components/Userlike/index.tsx

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const styles: {
3131
border: '0'
3232
},
3333
icon: {
34-
fontSize: '36px'
34+
fontSize: '40px'
3535
}
3636
}
3737

@@ -48,8 +48,8 @@ const Userlike = ({
4848
color = 'white',
4949
backgroundColor = '#0d8cff',
5050
position = 'right',
51-
vOffset = '24px',
52-
hOffset = '24px',
51+
vOffset = 'calc(0% + 20px)',
52+
hOffset = 'calc(0% + 24px)',
5353
style = 'round',
5454
containerClass = ClassNames.container
5555
}: Props): JSX.Element | null => {
@@ -88,16 +88,14 @@ const Userlike = ({
8888
<svg
8989
width="1em"
9090
height="1em"
91-
viewBox="0 0 36 36"
91+
viewBox="0 0 40 40"
9292
fill="none"
9393
style={{ ...styles.icon, color }}
9494
>
9595
<path
96-
fillRule="evenodd"
97-
clipRule="evenodd"
98-
d="M18 36c2.893 0 5.626-.682 8.047-1.895h5.11a2 2 0 002-2v-4.393A17.916 17.916 0 0036 18c0-9.941-8.059-18-18-18S0 8.059 0 18s8.059 18 18 18zM9.5 22a1.5 1.5 0 000 3h17a1.5 1.5 0 000-3h-17zm1.5-4a1.5 1.5 0 011.5-1.5h14a1.5 1.5 0 010 3h-14A1.5 1.5 0 0111 18zm-1.5-7a1.5 1.5 0 000 3h17a1.5 1.5 0 000-3h-17z"
96+
d="M37.4 30.7c-.1-.5 0-.9.2-1.4 1.5-2.8 2.3-6 2.3-9.4C40 9 31 0 20 0 9 0 0 9 0 20s9 20 20 20c3.3 0 6.5-.9 9.4-2.3.4-.2.9-.3 1.4-.2l6.8 1.3c.7.1 1.3-.5 1.2-1.2l-1.4-6.9zM21 29h-8c-1.1 0-2-.9-2-2s.9-2 2-2h8c1.1 0 2 .9 2 2s-.9 2-2 2zm6-7H13c-1.1 0-2-.9-2-2s.9-2 2-2h14c1.1 0 2 .9 2 2s-.9 2-2 2zm0-7H13c-1.1 0-2-.9-2-2s.9-2 2-2h14c1.1 0 2 .9 2 2s-.9 2-2 2z"
9997
fill="currentColor"
100-
/>
98+
></path>
10199
</svg>
102100
</button>
103101
</div>

website/pages/userlike.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const Page: NextPage = () => (
2525
<ExampleLinks />
2626
</div>
2727
</div>
28-
<Userlike vOffset="47px" hOffset="49px" />
28+
<Userlike />
2929
</Layout>
3030
</LiveChatLoaderProvider>
3131
)

0 commit comments

Comments
 (0)