From: Shohei Yoshida Date: Sun, 17 Mar 2019 23:27:59 +0000 (+0900) Subject: Workaround for MS edge bug (#28275) X-Git-Tag: v5.0.0-alpha1~1176 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5e459e9b52bf333e420361b8f31b8206d389bd2c;p=thirdparty%2Fbootstrap.git Workaround for MS edge bug (#28275) --- diff --git a/scss/_custom-forms.scss b/scss/_custom-forms.scss index 03f3fc5be2..07574df257 100644 --- a/scss/_custom-forms.scss +++ b/scss/_custom-forms.scss @@ -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; @@ -307,7 +309,9 @@ 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; } diff --git a/scss/_forms.scss b/scss/_forms.scss index e31a47312e..677162b8c6 100644 --- a/scss/_forms.scss +++ b/scss/_forms.scss @@ -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; } }