|
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 |
|
|
29 | 21 | * only apply to floating or stacked labels.
|
30 | 22 | */
|
31 | 23 | :host(.select-label-placement-floating.select-expanded) .label-text-wrapper,
|
32 |
| -:host(.select-label-placement-floating.ion-focused) .label-text-wrapper, |
| 24 | +:host(.select-label-placement-floating.has-focus) .label-text-wrapper, |
33 | 25 | :host(.select-label-placement-stacked.select-expanded) .label-text-wrapper,
|
34 |
| -:host(.select-label-placement-stacked.ion-focused) .label-text-wrapper { |
| 26 | +:host(.select-label-placement-stacked.has-focus) .label-text-wrapper { |
35 | 27 | color: var(--highlight-color);
|
36 | 28 | }
|
37 | 29 |
|
|
61 | 53 | }
|
62 | 54 |
|
63 | 55 | :host(.select-expanded) .select-highlight,
|
64 |
| -:host(.ion-focused) .select-highlight { |
| 56 | +:host(.has-focus) .select-highlight { |
65 | 57 | transform: scale(1);
|
66 | 58 | }
|
67 | 59 |
|
|
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 and |
| 91 | + * in an item, then the icon should |
| 92 | + * be the same color as the text color. |
| 93 | + */ |
| 94 | +:host(.in-item.select-expanded) .select-wrapper .select-icon, |
| 95 | +:host(.in-item.has-focus) .select-wrapper .select-icon, |
| 96 | +:host(.in-item.has-focus.ion-valid) .select-wrapper .select-icon, |
| 97 | +:host(.in-item.ion-touched.ion-invalid) .select-wrapper .select-icon { |
| 98 | + color: #{$select-md-icon-color}; |
| 99 | +} |
| 100 | + |
89 | 101 | /**
|
90 | 102 | * When the select is focused the icon should
|
91 | 103 | * take on the highlight color.
|
|
95 | 107 | :host(.select-expanded) .select-wrapper .select-icon,
|
96 | 108 | :host(.has-focus.ion-valid) .select-wrapper .select-icon,
|
97 | 109 | :host(.ion-touched.ion-invalid) .select-wrapper .select-icon,
|
98 |
| -:host(.ion-focused) .select-wrapper .select-icon { |
| 110 | +:host(.has-focus) .select-wrapper .select-icon { |
99 | 111 | color: var(--highlight-color);
|
100 | 112 | }
|
101 | 113 |
|
|
0 commit comments