mirror of
https://github.com/actualbudget/actual.git
synced 2026-05-11 01:18:59 -05:00
Update Button styles to use primary theme colors
This commit is contained in:
committed by
GitHub
parent
2ae72b5e4b
commit
5a4fcdb4e0
@@ -12,14 +12,14 @@ import { View } from './View';
|
||||
const backgroundColor: {
|
||||
[key in ButtonVariant | `${ButtonVariant}Disabled`]?: string;
|
||||
} = {
|
||||
normal: theme.buttonNormalDisabledBackground,
|
||||
normalDisabled: theme.buttonNormalDisabledBackground,
|
||||
normal: theme.buttonPrimaryBackground,
|
||||
normalDisabled: theme.buttonPrimaryBackground,
|
||||
primary: theme.buttonPrimaryBackground,
|
||||
primaryDisabled: theme.buttonPrimaryDisabledBackground,
|
||||
bare: theme.buttonBareBackground,
|
||||
bareDisabled: theme.buttonBareDisabledBackground,
|
||||
menu: theme.buttonMenuBackground,
|
||||
menuSelected: theme.buttonMenuSelectedBackground,
|
||||
primaryDisabled: theme.buttonPrimaryBackground,
|
||||
bare: theme.buttonPrimaryBackground,
|
||||
bareDisabled: theme.buttonPrimaryBackground,
|
||||
menu: theme.buttonPrimaryBackground,
|
||||
menuSelected: theme.buttonPrimaryBackground,
|
||||
};
|
||||
|
||||
const backgroundColorHover: Record<
|
||||
@@ -54,14 +54,14 @@ const borderColor: {
|
||||
const textColor: {
|
||||
[key in ButtonVariant | `${ButtonVariant}Disabled`]?: CSSProperties['color'];
|
||||
} = {
|
||||
normal: theme.buttonNormalText,
|
||||
normalDisabled: theme.buttonNormalDisabledText,
|
||||
normal: theme.buttonPrimaryText,
|
||||
normalDisabled: theme.buttonPrimaryText,
|
||||
primary: theme.buttonPrimaryText,
|
||||
primaryDisabled: theme.buttonPrimaryDisabledText,
|
||||
bare: theme.buttonBareText,
|
||||
bareDisabled: theme.buttonBareDisabledText,
|
||||
menu: theme.buttonMenuText,
|
||||
menuSelected: theme.buttonMenuSelectedText,
|
||||
primaryDisabled: theme.buttonPrimaryText,
|
||||
bare: theme.buttonPrimaryText,
|
||||
bareDisabled: theme.buttonPrimaryText,
|
||||
menu: theme.buttonPrimaryText,
|
||||
menuSelected: theme.buttonPrimaryText,
|
||||
};
|
||||
|
||||
const textColorHover: {
|
||||
@@ -173,7 +173,7 @@ export const Button = forwardRef<HTMLButtonElement, ButtonProps>(
|
||||
: cx(defaultButtonClassName, className)
|
||||
}
|
||||
>
|
||||
Hello! {children}
|
||||
{children}
|
||||
</ReactAriaButton>
|
||||
);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user