mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-16 02:24:19 +02:00
Workaround for MS edge bug (#28275)
This commit is contained in:
@@ -51,7 +51,9 @@
|
|||||||
@include box-shadow($custom-control-indicator-active-box-shadow);
|
@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 {
|
~ .custom-control-label {
|
||||||
color: $custom-control-label-disabled-color;
|
color: $custom-control-label-disabled-color;
|
||||||
|
|
||||||
@@ -307,7 +309,9 @@
|
|||||||
box-shadow: $custom-file-focus-box-shadow;
|
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;
|
background-color: $custom-file-disabled-bg;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -210,7 +210,9 @@ textarea.form-control {
|
|||||||
margin-top: $form-check-input-margin-y;
|
margin-top: $form-check-input-margin-y;
|
||||||
margin-left: -$form-check-input-gutter;
|
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;
|
color: $text-muted;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user