Skip to content

Commit

Permalink
avoid white bg on button hover if disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
rustyjux committed Sep 12, 2024
1 parent 70a9627 commit 68d9315
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ const EditNamespaceDisplayName: React.FC<EditNamespaceDisplayNameProps> = ({
onClick={handleSaveClick}
data-testid="edit-display-name-submit-btn"
isDisabled={!isInputValid}
variant="primary"
>
Save
</Button>
Expand Down
5 changes: 3 additions & 2 deletions src/nextapp/shared/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const _focus = {
boxShadow: 'sm',
};
const _disabled = {
opacity: 0.3,
opacity: 0.4,
cursor: 'not-allowed',
};
const _invalid = {
Expand Down Expand Up @@ -122,7 +122,8 @@ const buttonVariants = {
_disabled: {
..._disabled,
_hover: {
background: 'bc-blue',
bg: '#003366 !important', // Use the hex value of bc-blue directly, necessary oddly.
opacity: 0.4,
},
},
},
Expand Down

0 comments on commit 68d9315

Please sign in to comment.