Skip to content

Commit

Permalink
fix: color of button is actived on color picker (#8685)
Browse files Browse the repository at this point in the history
  • Loading branch information
fundon committed Nov 7, 2024
1 parent e37be7f commit ef55aba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions packages/affine/shared/src/services/theme-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,7 @@ const toolbarColorKeys: Array<keyof AffineCssVariables> = [
'--affine-text-primary-color',
'--affine-hover-color',
'--affine-hover-color-filled',
'--affine-white',
];

export const lightToolbarStyles = toolbarColorKeys.map(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export const COLOR_PICKER_STYLE = css`
nav button[active] {
color: var(--affine-text-primary-color, #121212);
background: var(--affine-white);
background: var(--affine-background-primary-color);
box-shadow: var(--affine-shadow-1);
pointer-events: none;
}
Expand Down Expand Up @@ -95,7 +95,7 @@ export const COLOR_PICKER_STYLE = css`
}
.modes .mode button[active] {
pointer-events: none;
outline: 2px solid var(--affine-brand-color);
outline: 2px solid var(--affine-brand-color, #1e96eb);
}
.content {
Expand Down Expand Up @@ -255,7 +255,7 @@ export const COLOR_PICKER_STYLE = css`
gap: 4px;
border-radius: 8px;
border: 1px solid var(--affine-border-color);
background: var(--affine-white-30);
background: var(--affine-background-tertiary-color);
box-sizing: border-box;
}
Expand Down

0 comments on commit ef55aba

Please sign in to comment.