mirror of
https://github.com/twbs/bootstrap.git
synced 2025-01-30 22:52:24 +01:00
V4: Add :disabled for disabled fieldset (#29762)
This commit is contained in:
parent
c24aaa6cbf
commit
0d148d8854
@ -54,9 +54,9 @@
|
|||||||
@include box-shadow($custom-control-indicator-active-box-shadow);
|
@include box-shadow($custom-control-indicator-active-box-shadow);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Use disabled attribute instead of :disabled pseudo-class
|
// Use [disabled] and :disabled to work around https://github.com/twbs/bootstrap/issues/28247
|
||||||
// Workaround for: https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/11295231
|
&[disabled],
|
||||||
&[disabled] {
|
&:disabled {
|
||||||
~ .custom-control-label {
|
~ .custom-control-label {
|
||||||
color: $custom-control-label-disabled-color;
|
color: $custom-control-label-disabled-color;
|
||||||
|
|
||||||
@ -319,9 +319,9 @@
|
|||||||
box-shadow: $custom-file-focus-box-shadow;
|
box-shadow: $custom-file-focus-box-shadow;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Use disabled attribute instead of :disabled pseudo-class
|
// Use [disabled] and :disabled to work around https://github.com/twbs/bootstrap/issues/28247
|
||||||
// Workaround for: https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/11295231
|
&[disabled] ~ .custom-file-label,
|
||||||
&[disabled] ~ .custom-file-label {
|
&:disabled ~ .custom-file-label {
|
||||||
background-color: $custom-file-disabled-bg;
|
background-color: $custom-file-disabled-bg;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -216,9 +216,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;
|
||||||
|
|
||||||
// Use disabled attribute instead of :disabled pseudo-class
|
// Use [disabled] and :disabled for workaround https://github.com/twbs/bootstrap/issues/28247
|
||||||
// Workaround for: https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/11295231
|
&[disabled] ~ .form-check-label,
|
||||||
&[disabled] ~ .form-check-label {
|
&:disabled ~ .form-check-label {
|
||||||
color: $text-muted;
|
color: $text-muted;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user