unit-id: improvements to toggle style
Change-Id: I5882e03015aa7f6b28b9d208169a8f24b002c5f9
Signed-off-by: Michael Davis <michael.s.davis@ibm.com>
diff --git a/src/scss/elements/_toggle-switch.scss b/src/scss/elements/_toggle-switch.scss
index 4c0faea..6ea5054 100644
--- a/src/scss/elements/_toggle-switch.scss
+++ b/src/scss/elements/_toggle-switch.scss
@@ -14,8 +14,10 @@
.toggle-switch {
position: absolute;
- margin-left: -9999px;
- visibility: hidden;
+ left: 20px;
+ height: 1px;
+ width: 1px;
+ opacity: 0;
}
.toggle-switch + label {
display: block;
@@ -36,6 +38,10 @@
@include borderRadius;
@include marginTransition;
}
+
+input.toggle-switch__round-flat:focus + label {
+ box-shadow: 0 0 4px 4px $darkbg__accent;
+}
input.toggle-switch__round-flat + label:before, input.toggle-switch__round-flat + label:after {
display: block;
position: absolute;