Skip to content

Commit

Permalink
Button: remove hover color when disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Loskir committed Jun 25, 2023
1 parent 0bf721d commit afaa323
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions components/Button/Button.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,7 @@
justify-content: center;
align-items: center;
}

.button:not(:disabled):hover {
@apply text-orange-600
}
3 changes: 2 additions & 1 deletion components/Button/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ export const Button: React.FC<ButtonProps> = ({ className, children, fullWidth,
return (
<button
className={clsx(
"py-2 px-4 bg-white rounded-2xl hover:text-orange-600 relative",
"py-2 px-4 bg-white rounded-2xl relative",
fullWidth && "w-full",
styles.button,
className,
)}
disabled={isLoading}
Expand Down

1 comment on commit afaa323

@vercel
Copy link

@vercel vercel bot commented on afaa323 Jun 25, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

price-monitor – ./

price-monitor-loskir.vercel.app
price-monitor-git-main-loskir.vercel.app
price-monitor-mu.vercel.app

Please sign in to comment.