Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
louismaximepiton authored and mdo committed Jul 24, 2023
1 parent ea21de1 commit cc5a8a9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion scss/forms/_floating-labels.scss
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@
}
}

> :disabled ~ label {
> :disabled ~ label,
> .form-control:disabled ~ label { // Required for `.form-control`s because of specificity
color: $form-floating-label-disabled-color;

&::after {
Expand Down
2 changes: 1 addition & 1 deletion site/content/docs/5.3/forms/floating-labels.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ Add the `disabled` boolean attribute on an input, a textarea or a select to give
<label for="floatingTextareaDisabled">Comments</label>
</div>
<div class="form-floating mb-3">
<textarea class="form-control" placeholder="Leave a comment here" id="floatingTextarea2Disabled" style="height: 100px" disabled></textarea>
<textarea class="form-control" placeholder="Leave a comment here" id="floatingTextarea2Disabled" style="height: 100px" disabled>Disabled textarea with some text inside</textarea>
<label for="floatingTextarea2Disabled">Comments</label>
</div>
<div class="form-floating">
Expand Down

0 comments on commit cc5a8a9

Please sign in to comment.