Fix/UI issue (#946)

Co-authored-by: JimmFly <yangjinfei001@gmail.com>
This commit is contained in:
Qi
2023-02-11 00:19:21 +08:00
committed by GitHub
parent 8a7393a961
commit d5f4c4210d
52 changed files with 610 additions and 659 deletions

View File

@@ -55,8 +55,8 @@ export const getLightTheme = (
h5: '20px',
h6: '18px',
base: '16px',
xs: '14px',
sm: '12px',
sm: '14px',
xs: '12px',
family: `Avenir Next, Poppins, ${basicFontFamily}`,
numberFamily: `Roboto Mono, ${basicFontFamily}`,

View File

@@ -213,7 +213,7 @@ export const StyledButton = styled('button', {
},
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
...getButtonColors(theme, type, {
...getButtonColors(theme, type, disabled, {
hoverBackground,
hoverColor,
hoverStyle,

View File

@@ -66,7 +66,9 @@ export const getButtonColors = (
borderColor: theme.colors.primaryColor,
},
':hover': {
borderColor: theme.colors.primaryColor,
borderColor: disabled
? theme.colors.hoverBackground
: theme.colors.primaryColor,
},
};
case 'warning':

View File

@@ -10,7 +10,7 @@ const StyledTooltip = styled(StyledPopperContainer)(({ theme }) => {
padding: '4px 12px',
backgroundColor: theme.colors.tooltipBackground,
color: '#fff',
fontSize: theme.font.xs,
fontSize: theme.font.sm,
};
});