aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTommaso Allegretti <[email protected]>2024-03-19 06:47:42 +0100
committerGitHub <[email protected]>2024-03-19 06:47:42 +0100
commite340674d06f1c5b054eb5395bac85a3cf36d3463 (patch)
treee9267eaae2a368e3a75171ab1e67588c6857e77a
parent4219af2c0ef1bccb0408128ef4d34f3cea7a6da5 (diff)
downloadbootstrap-e340674d06f1c5b054eb5395bac85a3cf36d3463.tar.xz
bootstrap-e340674d06f1c5b054eb5395bac85a3cf36d3463.zip
Change floating label placeholder's color (#39494)
Co-authored-by: Louis-Maxime Piton <[email protected]> Co-authored-by: Julien Déramond <[email protected]>
-rw-r--r--scss/forms/_floating-labels.scss3
1 files changed, 1 insertions, 2 deletions
diff --git a/scss/forms/_floating-labels.scss b/scss/forms/_floating-labels.scss
index 2cf04704d..1a6efc0a4 100644
--- a/scss/forms/_floating-labels.scss
+++ b/scss/forms/_floating-labels.scss
@@ -17,6 +17,7 @@
height: 100%; // allow textareas
padding: $form-floating-padding-y $form-floating-padding-x;
overflow: hidden;
+ color: rgba(var(--#{$prefix}body-color-rgb), #{$form-floating-label-opacity});
text-align: start;
text-overflow: ellipsis;
white-space: nowrap;
@@ -56,7 +57,6 @@
> .form-control-plaintext,
> .form-select {
~ label {
- color: rgba(var(--#{$prefix}body-color-rgb), #{$form-floating-label-opacity});
transform: $form-floating-label-transform;
&::after {
@@ -73,7 +73,6 @@
// Duplicated because `:-webkit-autofill` invalidates other selectors when grouped
> .form-control:-webkit-autofill {
~ label {
- color: rgba(var(--#{$prefix}body-color-rgb), #{$form-floating-label-opacity});
transform: $form-floating-label-transform;
}
}