Browse Source

fixed icheck-bootstrap focus

REJack 5 years ago
parent
commit
5fceda1ba8
1 changed files with 10 additions and 0 deletions
  1. 10 0
      build/scss/plugins/_icheck-bootstrap.scss

+ 10 - 0
build/scss/plugins/_icheck-bootstrap.scss

@@ -9,6 +9,11 @@
     border-color: #{$color};
   }
 
+  .icheck-#{$name} > input:first-child:not(:checked):not(:disabled):focus + label::before,
+  .icheck-#{$name} > input:first-child:not(:checked):not(:disabled):focus + input[type="hidden"] + label::before {
+    border-color: #{$color};
+  }
+
   .icheck-#{$name} > input:first-child:checked + label::before,
   .icheck-#{$name} > input:first-child:checked + input[type="hidden"] + label::before {
     background-color: #{$color};
@@ -23,6 +28,11 @@
     border-color: #{$color};
   }
 
+  .icheck-#{$name} > input:first-child:not(:checked):not(:disabled):focus + label::before,
+  .icheck-#{$name} > input:first-child:not(:checked):not(:disabled):focus + input[type="hidden"] + label::before {
+    border-color: #{$color};
+  }
+
   .icheck-#{$name} > input:first-child:checked + label::before,
   .icheck-#{$name} > input:first-child:checked + input[type="hidden"] + label::before {
     background-color: #{$color};