Skip to content

Commit

Permalink
Use colors from tailwind config for back button
Browse files Browse the repository at this point in the history
  • Loading branch information
tsar-boomba committed Sep 6, 2024
1 parent 8d5262e commit 31b9dce
Showing 1 changed file with 25 additions and 4 deletions.
29 changes: 25 additions & 4 deletions web/components/atoms/BackButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,32 @@ interface Props {

export default function BackButton({ onClick, disabled }: Props) {
return (
<button className="group flex items-center gap-[2px] text-[#8C8C8C]" onClick={onClick} disabled={disabled}>
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
<path d="M15 18L9 12L15 6" className={`${disabled ? 'stroke-gray-500' : "group-hover:stroke-gray-500"}`} stroke="#8C8C8C" stroke-width="3" stroke-linecap="square" stroke-linejoin="round"/>
<button
className='group flex items-center gap-[2px] text-medium-gray'
onClick={onClick}
disabled={disabled}
>
<svg
xmlns='http://www.w3.org/2000/svg'
width='24'
height='24'
viewBox='0 0 24 24'
fill='none'
>
<path
d='M15 18L9 12L15 6'
className={`${disabled ? 'stroke-dark-gray' : 'group-hover:stroke-dark-gray'}`}
stroke='#8C8C8C'
stroke-width='3'
stroke-linecap='square'
stroke-linejoin='round'
/>
</svg>
<div className={`${disabled ? 'text-gray-500' :'group-hover:text-gray-500'}`}>Back</div>
<div
className={`${disabled ? 'text-stroke-dark-gray' : 'group-hover:text-stroke-dark-gray'}`}
>
Back
</div>
</button>
);
}

0 comments on commit 31b9dce

Please sign in to comment.