Skip to content

Commit

Permalink
V4: Add :disabled for disabled fieldset (#29762)
Browse files Browse the repository at this point in the history
  • Loading branch information
ysds authored and XhmikosR committed Nov 28, 2019
1 parent 331a0c1 commit 3e436fd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions scss/_custom-forms.scss
Expand Up @@ -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;

Expand Down Expand Up @@ -319,9 +319,9 @@
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;
}

Expand Down
6 changes: 3 additions & 3 deletions scss/_forms.scss
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 3e436fd

Please sign in to comment.