mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-18 06:47:02 +08:00
fix(editor): should keep color on custom color button (#11773)
Closes: [BS-3167](https://linear.app/affine-design/issue/BS-3167/自定义按钮显示错误)
This commit is contained in:
@@ -321,7 +321,7 @@ export const calcCustomButtonStyle = (
|
||||
return { '--b': b, '--c': c };
|
||||
}
|
||||
|
||||
if (color.startsWith('---')) {
|
||||
if (color.startsWith('--')) {
|
||||
if (!color.endsWith('transparent')) {
|
||||
b = 'var(--affine-background-overlay-panel-color)';
|
||||
c = keepColor(
|
||||
|
||||
Reference in New Issue
Block a user