|
12 | 12 | --highlight-height: 2px; |
13 | 13 | } |
14 | 14 |
|
15 | | -.select-icon { |
16 | | - width: $select-md-icon-size; |
17 | | - |
18 | | - transition: transform .15s cubic-bezier(.4, 0, .2, 1); |
19 | | - |
20 | | - color: #{$text-color-step-500}; |
21 | | -} |
22 | | - |
23 | 15 | // Select Label |
24 | 16 | // ---------------------------------------------------------------- |
25 | 17 |
|
|
77 | 69 | // Select Icon |
78 | 70 | // ---------------------------------------------------------------- |
79 | 71 |
|
| 72 | +.select-icon { |
| 73 | + width: $select-md-icon-size; |
| 74 | + |
| 75 | + transition: transform .15s cubic-bezier(.4, 0, .2, 1); |
| 76 | + |
| 77 | + color: #{$select-md-icon-color}; |
| 78 | +} |
| 79 | + |
80 | 80 | /** |
81 | 81 | * This rotates the chevron icon |
82 | 82 | * when the select is activated. |
|
86 | 86 | @include transform(rotate(180deg)); |
87 | 87 | } |
88 | 88 |
|
| 89 | +/** |
| 90 | + * When the select has no fill, is |
| 91 | + * in an item, and is expanded, then |
| 92 | + * the icon should be the same color |
| 93 | + * as the text color. |
| 94 | + */ |
| 95 | +:host(.in-item.select-expanded) .select-wrapper .select-icon, |
| 96 | +:host(.in-item.select-expanded.ion-touched.ion-invalid) .select-wrapper .select-icon { |
| 97 | + color: #{$select-md-icon-color}; |
| 98 | +} |
| 99 | + |
89 | 100 | /** |
90 | 101 | * When the select is focused the icon should |
91 | | - * take on the highlight color when the select |
92 | | - * is not in an item or when the select is in |
93 | | - * an item and has a fill. |
| 102 | + * take on the highlight color. |
94 | 103 | * The icon should also take on the highlight |
95 | 104 | * color if there is a validation state. |
96 | 105 | */ |
97 | | -:host(.select-expanded:not(.in-item)) .select-wrapper .select-icon, |
98 | | -:host(.in-item.select-expanded.select-fill-solid) .select-wrapper .select-icon, |
99 | | -:host(.in-item.select-expanded.select-fill-outline) .select-wrapper .select-icon, |
| 106 | +:host(.select-expanded) .select-wrapper .select-icon, |
100 | 107 | :host(.ion-focused.ion-valid) .select-wrapper .select-icon, |
101 | 108 | :host(.ion-touched.ion-invalid) .select-wrapper .select-icon, |
102 | 109 | :host(.ion-focused) .select-wrapper .select-icon { |
|
0 commit comments