11@use ' sass:math' ;
22@use ' @angular/cdk' ;
33@use ' @material/typography/typography' as mdc-typography ;
4- @use ' ../core/style/elevation' ;
54@use ' ../core/style/vendor-prefixes' ;
65@use ' ../core/style/variables' ;
76@use ' ../core/tokens/token-utils' ;
@@ -32,6 +31,11 @@ $scale: 0.75 !default;
3231 @include token-utils .create-token-slot (letter-spacing , trigger- text- tracking);
3332 }
3433}
34+ @include token-utils .use-tokens (tokens-mat-select .$prefix , tokens-mat-select .get-token-slots ()) {
35+ div .mat-mdc-select-panel {
36+ @include token-utils .create-token-slot (box-shadow , container- elevation- shadow);
37+ }
38+ }
3539
3640.mat-mdc-select-disabled {
3741 @include token-utils .use-tokens (
@@ -83,6 +87,13 @@ $scale: 0.75 !default;
8387 }
8488}
8589
90+ .mat-mdc-form-field .mat-mdc-select.mat-mdc-select-invalid .mat-mdc-select-arrow ,
91+ .mat-form-field-invalid :not (.mat-form-field-disabled ) .mat-mdc-form-field-infix ::after {
92+ @include token-utils .use-tokens (tokens-mat-select .$prefix , tokens-mat-select .get-token-slots ()) {
93+ @include token-utils .create-token-slot (color , invalid- arrow- color);
94+ }
95+ }
96+
8697.mat-mdc-select-arrow {
8798 width : $mat-select-arrow-size * 2 ;
8899 height : $mat-select-arrow-size ;
@@ -96,10 +107,6 @@ $scale: 0.75 !default;
96107 @include token-utils .create-token-slot (color , focused- arrow- color);
97108 }
98109
99- .mat-mdc-form-field .mat-mdc-select.mat-mdc-select-invalid & {
100- @include token-utils .create-token-slot (color , invalid- arrow- color);
101- }
102-
103110 .mat-mdc-form-field .mat-mdc-select.mat-mdc-select-disabled & {
104111 @include token-utils .create-token-slot (color , disabled- arrow- color);
105112 }
@@ -128,7 +135,6 @@ $scale: 0.75 !default;
128135// DOM for the Gmat versions to work. We need to bump up the specificity here
129136// so that it's higher than MDC's styles.
130137div .mat-mdc-select-panel {
131- @include elevation .elevation (8 );
132138 width : 100% ; // Ensures that the panel matches the overlay width.
133139 max-height : $mat-select-panel-max-height ;
134140 outline : 0 ;
@@ -160,6 +166,10 @@ div.mat-mdc-select-panel {
160166 border-bottom-right-radius : 0 ;
161167 transform-origin : bottom center ;
162168 }
169+
170+ .mat-mdc-option {
171+ --mdc-list-list-item-container-color : var (--mat-select-panel-background-color );
172+ }
163173}
164174
165175.mat-mdc-select-placeholder {
0 commit comments