fix(ui): add layer icon and preserve switch contrast
This commit is contained in:
@@ -726,11 +726,12 @@ textarea.nodedc-field__control {
|
||||
|
||||
.nodedc-switch__track {
|
||||
display: flex;
|
||||
flex-shrink: 0;
|
||||
width: 2rem;
|
||||
height: 1.12rem;
|
||||
align-items: center;
|
||||
border-radius: var(--nodedc-radius-circle);
|
||||
background: rgba(255, 255, 255, 0.14);
|
||||
background: color-mix(in srgb, var(--nodedc-text-primary) 14%, transparent);
|
||||
padding: 0.14rem;
|
||||
transition: background var(--nodedc-duration-normal) var(--nodedc-ease-standard);
|
||||
}
|
||||
@@ -748,6 +749,7 @@ textarea.nodedc-field__control {
|
||||
}
|
||||
|
||||
.nodedc-switch[aria-checked="true"] .nodedc-switch__track > span {
|
||||
background: rgb(var(--nodedc-on-accent-rgb));
|
||||
transform: translateX(0.88rem);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user