mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-25 18:26:05 +08:00
style: adjust icon button hover color (#2976)
This commit is contained in:
@@ -50,7 +50,6 @@ export const StyledIconWrapper = styled('div')(() => {
|
|||||||
transition: 'background-color 0.2s',
|
transition: 'background-color 0.2s',
|
||||||
position: 'relative',
|
position: 'relative',
|
||||||
':hover': {
|
':hover': {
|
||||||
color: 'var(--affine-primary-color)',
|
|
||||||
backgroundColor: 'var(--affine-hover-color)',
|
backgroundColor: 'var(--affine-hover-color)',
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
@@ -74,7 +73,6 @@ export const StyledTriggerWrapper = styled('div')<{
|
|||||||
...displayFlex('center', 'center'),
|
...displayFlex('center', 'center'),
|
||||||
...positionAbsolute({ left: '4px', bottom: '4px' }),
|
...positionAbsolute({ left: '4px', bottom: '4px' }),
|
||||||
':hover': {
|
':hover': {
|
||||||
color: 'var(--affine-primary-color)',
|
|
||||||
backgroundColor: spread ? 'var(--affine-hover-color)' : null,
|
backgroundColor: spread ? 'var(--affine-hover-color)' : null,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ export const StyledIconButton = styled('button', {
|
|||||||
borderRadius,
|
borderRadius,
|
||||||
|
|
||||||
':hover': {
|
':hover': {
|
||||||
color: hoverColor ?? 'var(--affine-primary-color)',
|
color: hoverColor ?? 'var(--affine-icon-color)',
|
||||||
background: hoverBackground || 'var(--affine-hover-color)',
|
background: hoverBackground || 'var(--affine-hover-color)',
|
||||||
...(hoverStyle ?? {}),
|
...(hoverStyle ?? {}),
|
||||||
},
|
},
|
||||||
@@ -169,7 +169,7 @@ export const StyledButton = styled('button', {
|
|||||||
border: noBorder ? 'none' : '1px solid',
|
border: noBorder ? 'none' : '1px solid',
|
||||||
WebkitAppRegion: 'no-drag',
|
WebkitAppRegion: 'no-drag',
|
||||||
...displayInlineFlex('center', 'center'),
|
...displayInlineFlex('center', 'center'),
|
||||||
gap: '10px',
|
gap: '8px',
|
||||||
position: 'relative',
|
position: 'relative',
|
||||||
// TODO: disabled color is not decided
|
// TODO: disabled color is not decided
|
||||||
...(disabled
|
...(disabled
|
||||||
|
|||||||
Reference in New Issue
Block a user