From 55266963578a8ad86dda3aa83262c8cfa7b4c2f8 Mon Sep 17 00:00:00 2001 From: Chen <99816898+donteatfriedrice@users.noreply.github.com> Date: Fri, 11 Apr 2025 10:31:02 +0800 Subject: [PATCH] fix: update toggle switch active class name --- blocksuite/affine/components/src/toggle-switch/index.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/blocksuite/affine/components/src/toggle-switch/index.ts b/blocksuite/affine/components/src/toggle-switch/index.ts index 183493bf5a..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%); } @@ -64,7 +64,7 @@ export class ToggleSwitch extends LitElement { override render() { return html` -