From bcd1cd2629f2fcee52e28d585ec24bf28d2295eb Mon Sep 17 00:00:00 2001 From: Kieran Cui <78460423+cuikaipeng@users.noreply.github.com> Date: Fri, 11 Apr 2025 11:22:24 +0800 Subject: [PATCH] fix(editor): the switch button style set in the TOC does not effect (#11622) Co-authored-by: Chen <99816898+donteatfriedrice@users.noreply.github.com> --- blocksuite/affine/components/src/toggle-switch/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/blocksuite/affine/components/src/toggle-switch/index.ts b/blocksuite/affine/components/src/toggle-switch/index.ts index 2597cf5f32..0e60bf5df1 100644 --- a/blocksuite/affine/components/src/toggle-switch/index.ts +++ b/blocksuite/affine/components/src/toggle-switch/index.ts @@ -38,11 +38,11 @@ const styles = css` transition: 0.1s; } - label.subscribe { + label.on { background: var(--affine-primary-color); } - label.subscribe:after { + label.on:after { left: calc(100% - 1px); transform: translateX(-100%); }