Skip to content

Commit

Permalink
Delete API key button now visible in light mode (#8094)
Browse files Browse the repository at this point in the history
Closes #7179 
The font color of the button has been set to use
`theme.font.color.danger`. This means that the color will be red
regardless of whether the theme is inverted or not, which was the issue
before.
Merge conflicts have been resolved.
  • Loading branch information
BKM14 authored Oct 28, 2024
1 parent f9779c4 commit 288fb1d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/twenty-ui/src/input/button/components/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -286,9 +286,7 @@ const StyledButton = styled('button', {
: 'none'};
opacity: ${disabled ? 0.24 : 1};
color: ${!inverted
? !disabled
? theme.font.color.danger
: theme.color.red20
? theme.font.color.danger
: theme.font.color.inverted};
&:hover {
background: ${!inverted
Expand Down

0 comments on commit 288fb1d

Please sign in to comment.