Skip to content

Commit e340674

Browse files
TommasoAllegrettilouismaximepitonjulien-deramond
authored
Change floating label placeholder's color (#39494)
Co-authored-by: Louis-Maxime Piton <[email protected]> Co-authored-by: Julien Déramond <[email protected]>
1 parent 4219af2 commit e340674

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Diff for: scss/forms/_floating-labels.scss

+1-2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
height: 100%; // allow textareas
1818
padding: $form-floating-padding-y $form-floating-padding-x;
1919
overflow: hidden;
20+
color: rgba(var(--#{$prefix}body-color-rgb), #{$form-floating-label-opacity});
2021
text-align: start;
2122
text-overflow: ellipsis;
2223
white-space: nowrap;
@@ -56,7 +57,6 @@
5657
> .form-control-plaintext,
5758
> .form-select {
5859
~ label {
59-
color: rgba(var(--#{$prefix}body-color-rgb), #{$form-floating-label-opacity});
6060
transform: $form-floating-label-transform;
6161

6262
&::after {
@@ -73,7 +73,6 @@
7373
// Duplicated because `:-webkit-autofill` invalidates other selectors when grouped
7474
> .form-control:-webkit-autofill {
7575
~ label {
76-
color: rgba(var(--#{$prefix}body-color-rgb), #{$form-floating-label-opacity});
7776
transform: $form-floating-label-transform;
7877
}
7978
}

0 commit comments

Comments
 (0)