Skip to content

Commit

Permalink
switch to :active from :hover effect on mobile for Button UI co…
Browse files Browse the repository at this point in the history
  • Loading branch information
bozzhik committed Aug 9, 2024
1 parent a6fb931 commit 6192908
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/UI/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export default function Button({text, href, blank, className}: Props) {
},
}}
>
<span className={cn('w-full px-4 py-1.5 text-lg sm:text-base text-center hover:text-neutral-400 duration-200', 'bg-neutral-800/50 border-[1px] border-b-0 border-neutral-800', 'm-[0.25rem] rounded-[calc(0.7rem-0.125rem)] backdrop-blur-sm', className)}>{text}</span>
<span className={cn('w-full px-4 py-1.5 text-lg sm:text-base text-center', 'duration-200 hover:text-neutral-400 sm:hover:text-white sm:active:text-neutral-400', 'bg-neutral-800/50 border-[1px] border-b-0 border-neutral-800', 'm-[0.25rem] rounded-[calc(0.7rem-0.125rem)] backdrop-blur-sm', className)}>{text}</span>
</MotionLink>
)
}

0 comments on commit 6192908

Please sign in to comment.