Skip to content

Commit

Permalink
Merge pull request #60 from brandonnorsworthy/button-transition
Browse files Browse the repository at this point in the history
added a color transition to buttons
  • Loading branch information
JeredSpears authored Sep 15, 2024
2 parents 39934cd + debc634 commit 4c45e18
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/Button/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const Button: React.FC<MenuButtonProps> = ({ text, onClick, type, htmlType = "bu

return (
<button
className={`text-xl font-bold font-roboto py-3 px-6 min-w-full sm:min-w-36 ${typeStyles}`}
className={`text-xl font-bold font-roboto py-3 px-6 min-w-full sm:min-w-36 transition-colors ${typeStyles}`}
onClick={onClick}
disabled={disabled}
type={htmlType}
Expand Down
2 changes: 1 addition & 1 deletion src/components/MenuButton/MenuButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ interface MenuButtonProps {
const MenuButton: React.FC<MenuButtonProps> = (props) => {
return (
<button
className="text-3xl font-bold text-white md:text-4xl md:text-white/50 hover:text-white font-roboto disabled:text-white/20"
className="text-3xl font-bold text-white transition-colors md:text-4xl md:text-white/50 hover:text-white font-roboto disabled:text-white/20"
onClick={props.onClick}
disabled={props.disabled || !props.onClick}
>
Expand Down

0 comments on commit 4c45e18

Please sign in to comment.