mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-15 05:37:32 +00:00
fix(core): incorrect animated icon color & sizes (#11276)
This commit is contained in:
@@ -83,7 +83,7 @@ export const controlButton = style({
|
||||
justifyContent: 'center',
|
||||
borderRadius: '50%',
|
||||
backgroundColor: cssVarV2('layer/background/secondary'),
|
||||
color: cssVarV2('text/primary'),
|
||||
color: cssVarV2('icon/primary'),
|
||||
});
|
||||
|
||||
export const controls = style({
|
||||
|
||||
@@ -2,6 +2,10 @@ import { cssVarV2 } from '@toeverything/theme/v2';
|
||||
import { globalStyle, style } from '@vanilla-extract/css';
|
||||
export const root = style({
|
||||
display: 'inline-flex',
|
||||
height: '1em',
|
||||
width: '1em',
|
||||
alignItems: 'center',
|
||||
justifyContent: 'center',
|
||||
});
|
||||
|
||||
// replace primary colors to cssVarV2('icon/primary')
|
||||
@@ -28,14 +32,14 @@ const backgroundSecondaryColors = [
|
||||
globalStyle(
|
||||
`${root} :is(${iconPrimaryColors.map(color => `path[fill="${color}"]`).join(',')})`,
|
||||
{
|
||||
fill: cssVarV2('icon/primary'),
|
||||
fill: 'currentColor',
|
||||
}
|
||||
);
|
||||
|
||||
globalStyle(
|
||||
`${root} :is(${iconPrimaryColors.map(color => `path[stroke="${color}"]`).join(',')})`,
|
||||
{
|
||||
stroke: cssVarV2('icon/primary'),
|
||||
stroke: 'currentColor',
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user