Skip to content

Commit a7dc8f8

Browse files
louismaximepitonromankupchak93
authored andcommitted
fix
1 parent f59f527 commit a7dc8f8

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

scss/forms/_floating-labels.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,8 @@
8484
}
8585
}
8686

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

9091
&::after {

site/content/docs/5.3/forms/floating-labels.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ Add the `disabled` boolean attribute on an input, a textarea or a select to give
103103
<label for="floatingTextareaDisabled">Comments</label>
104104
</div>
105105
<div class="form-floating mb-3">
106-
<textarea class="form-control" placeholder="Leave a comment here" id="floatingTextarea2Disabled" style="height: 100px" disabled></textarea>
106+
<textarea class="form-control" placeholder="Leave a comment here" id="floatingTextarea2Disabled" style="height: 100px" disabled>Disabled textarea with some text inside</textarea>
107107
<label for="floatingTextarea2Disabled">Comments</label>
108108
</div>
109109
<div class="form-floating">

0 commit comments

Comments
 (0)