-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(input,select): align colors with spec
* Aligns the colors in the select and input [themes based on the spec](https://material.io/guidelines/components/text-fields.html#text-fields-states). * Includes the changes from #4883 since the two PRs are closely connected. Fixes #5114.
- Loading branch information
Showing
5 changed files
with
28 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,8 @@ | ||
|
||
// Gradient for showing the dashed line when the input is disabled. | ||
// Renders a gradient for showing the dashed line when the input is disabled. | ||
// Unlike using a border, a gradient allows us to adjust the spacing of the dotted line | ||
// to match the Material Design spec. | ||
$mat-underline-disabled-background-image: | ||
linear-gradient(to right, rgba(0, 0, 0, 0.26) 0%, rgba(0, 0, 0, 0.26) 33%, transparent 0%); | ||
|
||
@mixin mat-control-disabled-underline { | ||
background-image: $mat-underline-disabled-background-image; | ||
@mixin mat-control-disabled-underline($color) { | ||
background-image: linear-gradient(to right, $color 0%, $color 33%, transparent 0%); | ||
background-size: 4px 1px; | ||
background-repeat: repeat-x; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters