Skip to content

Commit cc5a8a9

Browse files
louismaximepitonmdo
authored andcommittedJul 24, 2023
fix
1 parent ea21de1 commit cc5a8a9

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed
 

‎scss/forms/_floating-labels.scss

+2-1
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

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ Add the `disabled` boolean attribute on an input, a textarea or a select to give
8989
<label for="floatingTextareaDisabled">Comments</label>
9090
</div>
9191
<div class="form-floating mb-3">
92-
<textarea class="form-control" placeholder="Leave a comment here" id="floatingTextarea2Disabled" style="height: 100px" disabled></textarea>
92+
<textarea class="form-control" placeholder="Leave a comment here" id="floatingTextarea2Disabled" style="height: 100px" disabled>Disabled textarea with some text inside</textarea>
9393
<label for="floatingTextarea2Disabled">Comments</label>
9494
</div>
9595
<div class="form-floating">

0 commit comments

Comments
 (0)
Please sign in to comment.