mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-25 06:18:45 +08:00
fix: update toggle switch active class name
This commit is contained in:
@@ -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`
|
||||
<label class=${this.on ? 'subscribe' : ''}>
|
||||
<label class=${this.on ? 'on' : ''}>
|
||||
<input
|
||||
type="checkbox"
|
||||
class="switch"
|
||||
|
||||
Reference in New Issue
Block a user