]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
V4: Add :disabled for disabled fieldset (#29762)
authorShohei Yoshida <ysds.code@gmail.com>
Thu, 28 Nov 2019 12:35:46 +0000 (21:35 +0900)
committerXhmikosR <xhmikosr@gmail.com>
Thu, 28 Nov 2019 12:59:49 +0000 (14:59 +0200)
scss/_custom-forms.scss
scss/_forms.scss

index 5eb2bb777191e5007e1eebae0f402c2116d0ea86..21e72da7dda5eebde29760cb1cbd72c399def11e 100644 (file)
@@ -54,9 +54,9 @@
     @include box-shadow($custom-control-indicator-active-box-shadow);
   }
 
-  // Use disabled attribute instead of :disabled pseudo-class
-  // Workaround for: https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/11295231
-  &[disabled] {
+  // Use [disabled] and :disabled to work around https://github.com/twbs/bootstrap/issues/28247
+  &[disabled],
+  &:disabled {
     ~ .custom-control-label {
       color: $custom-control-label-disabled-color;
 
     box-shadow: $custom-file-focus-box-shadow;
   }
 
-  // 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 {
+  // Use [disabled] and :disabled to work around https://github.com/twbs/bootstrap/issues/28247
+  &[disabled] ~ .custom-file-label,
+  &:disabled ~ .custom-file-label {
     background-color: $custom-file-disabled-bg;
   }
 
index f91789d656289bb8fcefac54ad6446e7a7e7e7f7..b2edb7b27bcbfa9685c2549d2c0b9ddb06eb80c1 100644 (file)
@@ -216,9 +216,9 @@ textarea.form-control {
   margin-top: $form-check-input-margin-y;
   margin-left: -$form-check-input-gutter;
 
-  // 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 {
+  // Use [disabled] and :disabled for workaround https://github.com/twbs/bootstrap/issues/28247
+  &[disabled] ~ .form-check-label,
+  &:disabled ~ .form-check-label {
     color: $text-muted;
   }
 }