Skip to content

Commit eacf436

Browse files
committed
Update arrow icons viewBox
1 parent a3946ca commit eacf436

File tree

5 files changed

+10
-8
lines changed

5 files changed

+10
-8
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@programmer_network/yail",
3-
"version": "1.0.23",
3+
"version": "1.0.24",
44
"description": "Programmer Network's official UI library for React",
55
"author": "Aleksandar Grbic - (https://programmer.network)",
66
"publishConfig": {

src/Components/Icons/IconArrowDown.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ const IconArrowDown: FC<IIconProps> = (props: SVGProps<SVGSVGElement>) => {
77
return (
88
<svg
99
xmlns='http://www.w3.org/2000/svg'
10-
viewBox='0 0 24 24'
1110
data-testid='icon-arrow-down'
11+
viewBox='7 10 10 5'
1212
{...props}
1313
>
1414
<path fill='currentColor' d='m7 10l5 5l5-5z'></path>

src/Components/Icons/IconArrowUp.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ const IconArrowUp: FC<IIconProps> = (props: SVGProps<SVGSVGElement>) => {
77
return (
88
<svg
99
xmlns='http://www.w3.org/2000/svg'
10-
viewBox='0 0 24 24'
1110
data-testid='icon-arrow-up'
11+
viewBox='7 9 10 5'
1212
{...props}
1313
>
1414
<path fill='currentColor' d='m7 14l5-5l5 5z'></path>

src/Components/Icons/icons.stories.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,10 @@ const Template = () => {
2424
key={iconName}
2525
className='flex flex-col items-center justify-center gap-2 p-8'
2626
>
27-
<Icon className='h-16 w-16 text-primary' />
28-
<span className='font-bold text-primary'>{iconName}</span>
27+
<Icon className='h-16 w-16 text-white' />
28+
<span className='font-bold text-primary-text-color'>
29+
{iconName}
30+
</span>
2931
</div>
3032
);
3133
})}

src/Components/Reactions/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@ const Reactions: FC<IReactionsProps> = ({
1919
}) => {
2020
return (
2121
<div className='flex gap-4 py-2 text-primary-text-color'>
22-
<div className='flex gap-4'>
22+
<div className='flex gap-8'>
2323
<div className='my-0 flex items-center justify-center gap-1'>
2424
{isLiking ? (
2525
<IconSpinner className='w-5' />
2626
) : (
2727
<>
2828
<IconArrowUp
29-
className={classNames("w-12", {
29+
className={classNames("w-6", {
3030
"fill-primary-text-color": !hasLiked,
3131
"cursor-not-allowed text-primary": hasLiked || isDisliking,
3232
"cursor-pointer hover:text-primary": !hasLiked
@@ -43,7 +43,7 @@ const Reactions: FC<IReactionsProps> = ({
4343
) : (
4444
<>
4545
<IconArrowDown
46-
className={classNames("w-12", {
46+
className={classNames("w-6", {
4747
"fill-primary-text-color": !hasDisliked,
4848
"cursor-not-allowed text-rose-500": hasDisliked || isLiking,
4949
"cursor-pointer hover:text-rose-500":

0 commit comments

Comments
 (0)