Files
web/packages/design-system/lib/components/Switch/switch.module.css
Rasmus Langvad d0546926a9 Merged in fix/3697-prettier-configs (pull request #3396)
fix(SW-3691): Setup one prettier config for whole repo

* Setup prettierrc in root and remove other configs


Approved-by: Joakim Jäderberg
Approved-by: Linus Flood
2026-01-07 12:45:50 +00:00

47 lines
933 B
CSS

.container {
display: flex;
flex-direction: row;
color: var(--Text-Default);
cursor: pointer;
width: 100%;
justify-content: space-between;
}
.switch {
width: 40px;
height: 24px;
border: 2px solid var(--Surface-Secondary-Subtle);
background: var(--Surface-Secondary-Subtle);
border-radius: 24px;
transition: all 200ms;
display: block;
&:before {
content: "";
display: block;
margin: 2px;
width: 16px;
height: 16px;
background: var(--Surface-UI-Fill-Default);
border-radius: 100%;
transition: all 200ms;
}
}
.container[data-selected] {
.switch {
border-color: var(--Surface-UI-Fill-Active);
background: var(--Surface-UI-Fill-Active);
&:before {
background: var(--Surface-UI-Fill-Default);
transform: translateX(100%);
}
}
}
.container[data-focus-visible] .switch {
outline: 2px solid var(--focus-ring-color);
outline-offset: 2px;
}