Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

fix(core): incorrect animated icon color & sizes (#11276)

pengx17a94bef673865
diff --git a/packages/frontend/component/src/ui/audio-player/audio-player.css.ts b/packages/frontend/component/src/ui/audio-player/audio-player.css.ts
index a8912ab34f..d3b7b9fdc4 100644
--- a/packages/frontend/component/src/ui/audio-player/audio-player.css.ts
+++ b/packages/frontend/component/src/ui/audio-player/audio-player.css.ts
@@ -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({
diff --git a/packages/frontend/component/src/ui/lottie/styles.css.ts b/packages/frontend/component/src/ui/lottie/styles.css.ts
index cf8e30183d..73b5b2b888 100644
--- a/packages/frontend/component/src/ui/lottie/styles.css.ts
+++ b/packages/frontend/component/src/ui/lottie/styles.css.ts
@@ -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',
}
);