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
+1 -1
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,
+3 -1
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':
@@ -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,
};
});