@@ -22,17 +22,28 @@ $mat-select-panel-max-height: 256px !default;
22
22
min-width : $mat-select-trigger-min-width ;
23
23
cursor : pointer ;
24
24
position : relative ;
25
- box-sizing : border-box ;
26
25
27
26
[aria-disabled = ' true' ] & {
28
- @include mat-control-disabled-underline ();
29
- border-bottom : transparent ;
30
27
background-position : 0 bottom ;
31
28
cursor : default ;
32
29
user-select : none ;
33
30
}
34
31
}
35
32
33
+ .mat-select-border {
34
+ position : absolute ;
35
+ bottom : 0 ;
36
+ left : 0 ;
37
+ right : 0 ;
38
+ height : 1px ;
39
+
40
+ [aria-disabled = ' true' ] & {
41
+ @include mat-control-disabled-underline ();
42
+ background-color : transparent ;
43
+ background-position : 0 bottom ;
44
+ }
45
+ }
46
+
36
47
.mat-select-placeholder {
37
48
position : relative ;
38
49
padding : 0 2px ;
@@ -65,7 +76,6 @@ $mat-select-panel-max-height: 256px !default;
65
76
}
66
77
67
78
.mat-select-value {
68
- @include mat-truncate-line ();
69
79
position : absolute ;
70
80
max-width : calc (100% - #{$mat-select-arrow-size * 2 } );
71
81
@@ -74,13 +84,12 @@ $mat-select-panel-max-height: 256px !default;
74
84
// position. This has been fixed for Firefox 52, slated for early 2017.
75
85
// Bug report: https://bugzilla.mozilla.org/show_bug.cgi?id=874718
76
86
//
77
- // In the meantime, we must adjust the position to fit the top and left edge of the
78
- // containing element with a height matching the trigger container.
79
- // In doing so, we can use align-items: center to allow the text to
87
+ // In the meantime, we must adjust the position to fit the top, left, and bottom edge of the
88
+ // containing trigger element. In doing so, we can use align-items: center to allow the text to
80
89
// correctly position itself in the middle of the container.
81
90
top : 0 ;
82
91
left : 0 ;
83
- height : $mat-select-trigger-height ;
92
+ bottom : 0 ;
84
93
85
94
display : flex ;
86
95
align-items : center ;
@@ -91,6 +100,11 @@ $mat-select-panel-max-height: 256px !default;
91
100
}
92
101
}
93
102
103
+ .mat-select-value-text {
104
+ @include mat-truncate-line ();
105
+ line-height : $mat-select-trigger-height ;
106
+ }
107
+
94
108
.mat-select-arrow {
95
109
width : 0 ;
96
110
height : 0 ;
0 commit comments