mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
fix(select): bigger height for underline on focus (#5510)
* On focus the underline height should be as twice as big as the normal height. This is similar to the input component of Angular Material. * Replaces the `aria-disabled` attribute selectors with the `mat-select-disabled` class. Fixes #5499
This commit is contained in:
committed by
Jeremy Elbourn
parent
e21b64cb5d
commit
78f0cecb79
@@ -10,6 +10,7 @@ $mat-select-trigger-min-width: 112px !default;
|
||||
$mat-select-arrow-size: 5px !default;
|
||||
$mat-select-arrow-margin: 4px !default;
|
||||
$mat-select-panel-max-height: 256px !default;
|
||||
$mat-select-trigger-underline-height: 1px !default;
|
||||
|
||||
.mat-select {
|
||||
display: inline-block;
|
||||
@@ -25,7 +26,7 @@ $mat-select-panel-max-height: 256px !default;
|
||||
position: relative;
|
||||
box-sizing: border-box;
|
||||
|
||||
[aria-disabled='true'] & {
|
||||
.mat-select-disabled & {
|
||||
@include user-select(none);
|
||||
cursor: default;
|
||||
}
|
||||
@@ -36,9 +37,13 @@ $mat-select-panel-max-height: 256px !default;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
height: 1px;
|
||||
height: $mat-select-trigger-underline-height;
|
||||
|
||||
[aria-disabled='true'] & {
|
||||
.mat-select:focus & {
|
||||
height: $mat-select-trigger-underline-height * 2;
|
||||
}
|
||||
|
||||
.mat-select-disabled & {
|
||||
@include mat-control-disabled-underline();
|
||||
background-color: transparent;
|
||||
background-position: 0 bottom;
|
||||
|
||||
Reference in New Issue
Block a user