Skip to content

Commit

Permalink
Highlight when tabbing to umb-toggle
Browse files Browse the repository at this point in the history
  • Loading branch information
Dennis Meinert Pedersen authored and nul800sebastiaan committed Jun 25, 2019
1 parent 8d67e39 commit ad121bd
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,23 +21,23 @@
background-color: @inputBorder;
position: relative;
transition: background-color 120ms;
.umb-toggle:hover &,

.umb-toggle:hover &,
.umb-toggle:focus & {
border-color: @inputBorderFocus;
}

.umb-toggle.umb-toggle--checked & {
border-color: @ui-btn;
background-color: @ui-btn;

&:hover {
background-color: @ui-btn-hover;
}
}
.umb-toggle.umb-toggle--checked:focus & {
border-color: black;

.tabbing-active .umb-toggle:focus & {
box-shadow: 0 0 0 2px highlight;
}
}

Expand All @@ -54,12 +54,12 @@
background-color: @white;
border-radius: 8px;
transition: transform 120ms ease-in-out, background-color 120ms;

.umb-toggle.umb-toggle--checked & {
transform: translateX(20px);
background-color: white;
}

}


Expand Down

0 comments on commit ad121bd

Please sign in to comment.