88$mat-select-arrow-size : 5px !default ;
99$mat-select-arrow-margin : 4px !default ;
1010$mat-select-panel-max-height : 275px !default ;
11- $mat-select-placeholder-arrow-space : 2 *
12- ($mat-select-arrow-size + $mat-select-arrow-margin );
11+ $mat-select-placeholder-arrow-space : 2 * ($mat-select-arrow-size + $mat-select-arrow-margin );
1312$leading-width : 12px !default ;
1413$scale : 0.75 !default ;
1514
16-
1715.mat-mdc-select {
1816 display : inline-block ;
1917 width : 100% ;
2018 outline : none ;
2119
22- @include token-utils .use-tokens (
23- tokens-mat-select .$prefix , tokens-mat-select .get-token-slots ()) {
20+ @include token-utils .use-tokens (tokens-mat-select .$prefix , tokens-mat-select .get-token-slots ()) {
2421 @include vendor-prefixes .smooth-font ();
2522 @include token-utils .create-token-slot (color , enabled- trigger- text- color);
2623 @include token-utils .create-token-slot (font-family , trigger- text- font);
@@ -37,8 +34,7 @@ $scale: 0.75 !default;
3734}
3835
3936.mat-mdc-select-disabled {
40- @include token-utils .use-tokens (
41- tokens-mat-select .$prefix , tokens-mat-select .get-token-slots ()) {
37+ @include token-utils .use-tokens (tokens-mat-select .$prefix , tokens-mat-select .get-token-slots ()) {
4238 @include token-utils .create-token-slot (color , disabled- trigger- text- color);
4339 }
4440}
@@ -93,8 +89,7 @@ $scale: 0.75 !default;
9389 height : $mat-select-arrow-size ;
9490 position : relative ;
9591
96- @include token-utils .use-tokens (
97- tokens-mat-select .$prefix , tokens-mat-select .get-token-slots ()) {
92+ @include token-utils .use-tokens (tokens-mat-select .$prefix , tokens-mat-select .get-token-slots ()) {
9893 @include token-utils .create-token-slot (color , enabled- arrow- color);
9994
10095 .mat-mdc-form-field.mat-focused & {
@@ -122,6 +117,9 @@ $scale: 0.75 !default;
122117 fill : GrayText ;
123118 }
124119 }
120+ & .mat-mdc-select-svg-opened {
121+ transform : translate (-50% , -50% ) rotate (180deg );
122+ }
125123 }
126124}
127125
@@ -140,8 +138,7 @@ div.mat-mdc-select-panel {
140138 // Workaround in case other MDC menu surface styles bleed in.
141139 position : static ;
142140
143- @include token-utils .use-tokens (
144- tokens-mat-select .$prefix , tokens-mat-select .get-token-slots ()) {
141+ @include token-utils .use-tokens (tokens-mat-select .$prefix , tokens-mat-select .get-token-slots ()) {
145142 @include token-utils .create-token-slot (background-color , panel- background- color);
146143 }
147144
@@ -170,11 +167,9 @@ div.mat-mdc-select-panel {
170167 // Delay the transition until the label has animated about a third of the way through, in
171168 // order to prevent the placeholder from overlapping for a split second.
172169 transition : color variables .$swift-ease-out-duration
173- math .div (variables .$swift-ease-out-duration , 3 )
174- variables .$swift-ease-out-timing-function ;
170+ math .div (variables .$swift-ease-out-duration , 3 ) variables .$swift-ease-out-timing-function ;
175171
176- @include token-utils .use-tokens (
177- tokens-mat-select .$prefix , tokens-mat-select .get-token-slots ()) {
172+ @include token-utils .use-tokens (tokens-mat-select .$prefix , tokens-mat-select .get-token-slots ()) {
178173 @include token-utils .create-token-slot (color , placeholder- text- color);
179174 }
180175
0 commit comments