]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Workaround for MS edge bug (#28275)
authorShohei Yoshida <fellows3@gmail.com>
Sun, 17 Mar 2019 23:27:59 +0000 (08:27 +0900)
committerXhmikosR <xhmikosr@gmail.com>
Sun, 17 Mar 2019 23:27:59 +0000 (01:27 +0200)
scss/_custom-forms.scss
scss/_forms.scss

index 03f3fc5be2dafceb717340c65c909f710013fbbb..07574df25761c64eba4ac258fa54c87afe0a1a3a 100644 (file)
@@ -51,7 +51,9 @@
     @include box-shadow($custom-control-indicator-active-box-shadow);
   }
 
-  &:disabled {
+  // Use disabled attribute instead of :disabled pseudo-class
+  // Workaround for: https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/11295231
+  &[disabled] {
     ~ .custom-control-label {
       color: $custom-control-label-disabled-color;
 
     box-shadow: $custom-file-focus-box-shadow;
   }
 
-  &:disabled ~ .custom-file-label {
+  // Use disabled attribute instead of :disabled pseudo-class
+  // Workaround for: https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/11295231
+  &[disabled] ~ .custom-file-label {
     background-color: $custom-file-disabled-bg;
   }
 
index e31a47312e3699d6384f57f5fe0ff352cb2af072..677162b8c623fa9277d56e688b5ca8694d7f7c93 100644 (file)
@@ -210,7 +210,9 @@ textarea.form-control {
   margin-top: $form-check-input-margin-y;
   margin-left: -$form-check-input-gutter;
 
-  &:disabled ~ .form-check-label {
+  // Use disabled attribute instead of :disabled pseudo-class
+  // Workaround for: https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/11295231
+  &[disabled] ~ .form-check-label {
     color: $text-muted;
   }
 }