Skip to content

Commit 6dbb459

Browse files
committed
refactor(select): use class and not
1 parent c984fa4 commit 6dbb459

File tree

3 files changed

+15
-5
lines changed

3 files changed

+15
-5
lines changed

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,3 +240,10 @@
240240
:host(.label-floating.select-fill-outline) .select-outline-notch {
241241
border-top: none;
242242
}
243+
244+
// Select Icon
245+
// ----------------------------------------------------------------
246+
247+
:host(.in-item.select-expanded) .select-wrapper .select-icon {
248+
color: var(--highlight-color);
249+
}

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -92,17 +92,13 @@
9292
* The icon should also take on the highlight
9393
* color if there is a validation state.
9494
*/
95-
:host(.select-expanded) .select-wrapper .select-icon,
95+
:host(.select-expanded:not(.in-item)) .select-wrapper .select-icon,
9696
:host(.ion-focused.ion-valid) .select-wrapper .select-icon,
9797
:host(.ion-touched.ion-invalid) .select-wrapper .select-icon,
9898
:host(.ion-focused) .select-wrapper .select-icon {
9999
color: var(--highlight-color);
100100
}
101101

102-
:host(.in-item.select-expanded) .select-wrapper .select-icon {
103-
color: #{$text-color-step-500};
104-
}
105-
106102
// Select Shape Rounded
107103
// ----------------------------------------------------------------
108104

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,3 +79,10 @@
7979
*/
8080
max-width: calc(100% / #{$form-control-label-stacked-scale});
8181
}
82+
83+
// Select Icon
84+
// ----------------------------------------------------------------
85+
86+
:host(.in-item.select-expanded) .select-wrapper .select-icon {
87+
color: var(--highlight-color);
88+
}

0 commit comments

Comments
 (0)