Extract component to render a switch

We're going to use it in other places.
This commit is contained in:
Javi Martín
2022-12-16 15:35:08 +01:00
parent 72704d7761
commit 0d18e25e99
6 changed files with 40 additions and 22 deletions

View File

@@ -3,9 +3,4 @@
caption {
@include element-invisible;
}
[aria-pressed] {
@include switch;
margin-bottom: 0;
}
}

View File

@@ -0,0 +1,6 @@
.admin .toggle-switch {
[aria-pressed] {
@include switch;
margin-bottom: 0;
}
}