1
0
Fork 0
mirror of https://github.com/twbs/bootstrap.git synced 2022-11-09 12:25:43 -05:00

Fix disabled floating labels color

This commit is contained in:
Julien Déramond 2022-10-31 19:29:04 +01:00
parent baedc38758
commit ca68922986
No known key found for this signature in database
GPG key ID: DCD226672FC08F31
3 changed files with 16 additions and 11 deletions

View file

@ -30,7 +30,7 @@
},
{
"path": "./dist/css/bootstrap.min.css",
"maxSize": "27.5 kB"
"maxSize": "27.75 kB"
},
{
"path": "./dist/js/bootstrap.bundle.js",

View file

@ -1005,6 +1005,7 @@ $form-floating-input-padding-b: .625rem !default;
$form-floating-label-height: 1.875em !default;
$form-floating-label-opacity: .65 !default;
$form-floating-label-transform: scale(.85) translateY(-.5rem) translateX(.15rem) !default;
$form-floating-label-disabled-color: $gray-600 !default;
$form-floating-transition: opacity .1s ease-in-out, transform .1s ease-in-out !default;
// scss-docs-end form-floating-variables

View file

@ -83,4 +83,8 @@
border-width: $input-border-width 0; // Required to properly position label text - as explained above
}
}
> .form-control:disabled ~ label {
color: $form-floating-label-disabled-color;
}
}