Skip to content

Commit

Permalink
refactor: Update button styles to include active state
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-vahn committed May 15, 2024
1 parent 8d4bc7b commit eefb3b6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ function App() {
<div>
<PrimaryButton
title="Disconnect"
className="bg-red-200 border border-red-300"
className="bg-red-200 border border-red-300 active:bg-red-300"
textColor="customBlackText"
callback={handleDisconnect}
/>
Expand Down
2 changes: 1 addition & 1 deletion src/components/buttons/ConnectButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ type Props = {
const ConnectButton: React.FC<Props> = ({ title, icon, callback }) => {
return (
<div
className="flex items-center justify-center bg-customBlueButton text-white py-3 px-5 rounded-xl border-none text-base font-semibold whitespace-nowrap"
className="flex items-center justify-center bg-customBlueButton active:bg-blue-400 text-white py-3 px-5 rounded-xl border-none text-base font-semibold whitespace-nowrap"
onClick={callback}
>
<div className="flex flex-shrink-0 items-center justify-center h-7 w-11 mr-3">
Expand Down
2 changes: 1 addition & 1 deletion src/components/buttons/PrimaryButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const PrimaryButton: React.FC<Props> = ({
}) => {
return (
<div
className={`flex items-center justify-center bg-customBlueButton h-12 text-${textColor} py-3 px-5 rounded-lg border-customBlueButton border-1 text-base font-semibold text-center ${className}`}
className={`flex items-center justify-center bg-customBlueButton h-12 text-${textColor} py-3 px-5 rounded-lg border-customBlueButton border-1 text-base font-semibold text-center ${className} active:bg-blue-400`}
onClick={callback}
>
<span>{title}</span>
Expand Down

0 comments on commit eefb3b6

Please sign in to comment.