Skip to content

Commit

Permalink
Form-toggle: Fixed a bug where the disabled status hover wasn't being…
Browse files Browse the repository at this point in the history
… applied
  • Loading branch information
johnHackworth committed Dec 17, 2015
1 parent fb848ec commit 88d5e24
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions client/components/forms/form-toggle/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@
}
&:hover {
background: lighten( $gray, 20% );


}
.accessible-focus &:focus{
box-shadow: 0 0 0 2px $blue-medium;
Expand Down Expand Up @@ -72,9 +74,9 @@
background: $blue-light;
}
}
&:disabled,
&:disabled:hover {
+ .form-toggle__label .form-toggle__switch {
&:disabled {
+ label.form-toggle__label span.form-toggle__switch:hover,
+ label.form-toggle__label span.form-toggle__switch {
background: lighten( $gray, 30% );
cursor: default;
}
Expand Down

0 comments on commit 88d5e24

Please sign in to comment.