Skip to content

Commit a93adf3

Browse files
committed
refactor(select): use gray on icon when expanded and in item
1 parent 42f16cf commit a93adf3

9 files changed

+34
-11
lines changed

core/src/components/select/select.md.outline.scss

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,3 +240,19 @@
240240
:host(.label-floating.select-fill-outline) .select-outline-notch {
241241
border-top: none;
242242
}
243+
244+
// Select Icon
245+
// ----------------------------------------------------------------
246+
247+
/**
248+
* When the select is focused the icon should
249+
* take on the highlight color.
250+
* The icon should also take on the highlight
251+
* color if there is a validation state.
252+
*/
253+
:host(.select-expanded) .select-wrapper .select-icon,
254+
:host(.ion-focused.ion-valid) .select-wrapper .select-icon,
255+
:host(.ion-touched.ion-invalid) .select-wrapper .select-icon,
256+
:host(.ion-focused) .select-wrapper .select-icon {
257+
color: var(--highlight-color);
258+
}

core/src/components/select/select.md.scss

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -86,17 +86,8 @@
8686
@include transform(rotate(180deg));
8787
}
8888

89-
/**
90-
* When the select is focused the icon should
91-
* take on the highlight color.
92-
* The icon should also take on the highlight
93-
* color if there is a validation state.
94-
*/
95-
:host(.select-expanded) .select-wrapper .select-icon,
96-
:host(.ion-focused.ion-valid) .select-wrapper .select-icon,
97-
:host(.ion-touched.ion-invalid) .select-wrapper .select-icon,
98-
:host(.ion-focused) .select-wrapper .select-icon {
99-
color: var(--highlight-color);
89+
:host(.in-item.select-expanded) .select-wrapper .select-icon {
90+
color: #{$text-color-step-500};
10091
}
10192

10293
// Select Shape Rounded

core/src/components/select/select.md.solid.scss

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,3 +79,19 @@
7979
*/
8080
max-width: calc(100% / #{$form-control-label-stacked-scale});
8181
}
82+
83+
// Select Icon
84+
// ----------------------------------------------------------------
85+
86+
/**
87+
* When the select is focused the icon should
88+
* take on the highlight color.
89+
* The icon should also take on the highlight
90+
* color if there is a validation state.
91+
*/
92+
:host(.select-expanded) .select-wrapper .select-icon,
93+
:host(.ion-focused.ion-valid) .select-wrapper .select-icon,
94+
:host(.ion-touched.ion-invalid) .select-wrapper .select-icon,
95+
:host(.ion-focused) .select-wrapper .select-icon {
96+
color: var(--highlight-color);
97+
}
-118 Bytes
Loading
-51 Bytes
Loading
-29 Bytes
Loading
79 Bytes
Loading
-77 Bytes
Loading
-28 Bytes
Loading

0 commit comments

Comments
 (0)