fix(input): update disabled opacity of md input (#26514)

This commit is contained in:
Sean Perkins
2023-02-02 17:21:57 -05:00
committed by GitHub
parent 2a6bba0cb6
commit 90f4995aa6
7 changed files with 35 additions and 22 deletions

View File

@ -34,6 +34,13 @@
height: 22px;
}
// Input - Disabled
// ----------------------------------------------------------------
:host(.legacy-input) .native-input[disabled],
:host([disabled]) {
opacity: #{$input-md-disabled-opacity};
}
// Input Bottom
// ----------------------------------------------------------------
/**

View File

@ -69,3 +69,8 @@ $input-md-inset-margin-start: $item-md-padding-start !default;
/// @prop - The amount of whitespace to display on either side of the floating label
$input-md-floating-label-padding: 4px !default;
/// @prop - The disabled opacity of the input text, the label, helper text, char counter and placeholder of a disabled input.
/// This value comes from the Material Design spec:
/// - https://github.com/material-components/material-web/pull/549
$input-md-disabled-opacity: 0.37 !default;

View File

@ -2,3 +2,4 @@
/// @prop - How much to scale the floating label by
$input-floating-label-scale: 0.75 !default;

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.6 KiB

After

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.3 KiB

After

Width:  |  Height:  |  Size: 6.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.6 KiB

After

Width:  |  Height:  |  Size: 6.6 KiB