Skip to content

Commit d9f8ea6

Browse files
committed
refactor(select): icon should be gray for has-focus
1 parent 1cd0c14 commit d9f8ea6

6 files changed

+15
-9
lines changed

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -246,11 +246,13 @@
246246

247247
/**
248248
* When the select has a fill, is
249-
* in an item, and is expanded, then
250-
* the icon should take on the
249+
* in an item, and is expanded or focused,
250+
* then the icon should take on the
251251
* highlight color.
252252
*/
253253
:host(.in-item.select-expanded.select-fill-outline) .select-wrapper .select-icon,
254-
:host(.in-item.select-expanded.ion-touched.ion-invalid.select-fill-outline) .select-wrapper .select-icon {
254+
:host(.in-item.select-expanded.ion-touched.ion-invalid.select-fill-outline) .select-wrapper .select-icon,
255+
:host(.in-item.has-focus.select-fill-outline) .select-wrapper .select-icon,
256+
:host(.in-item.has-focus.ion-touched.ion-invalid.select-fill-outline) .select-wrapper .select-icon {
255257
color: var(--highlight-color);
256258
}

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,12 +88,14 @@
8888

8989
/**
9090
* When the select has no fill, is
91-
* in an item, and is expanded, then
92-
* the icon should be the same color
91+
* in an item, and is expanded or focused,
92+
* then the icon should be the same color
9393
* as the text color.
9494
*/
9595
:host(.in-item.select-expanded) .select-wrapper .select-icon,
96-
:host(.in-item.select-expanded.ion-touched.ion-invalid) .select-wrapper .select-icon {
96+
:host(.in-item.select-expanded.ion-touched.ion-invalid) .select-wrapper .select-icon,
97+
:host(.in-item.has-focus) .select-wrapper .select-icon,
98+
:host(.in-item.has-focus.ion-touched.ion-invalid) .select-wrapper .select-icon {
9799
color: #{$select-md-icon-color};
98100
}
99101

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,13 @@
8686

8787
/**
8888
* When the select has a fill, is
89-
* in an item, and is expanded, then
90-
* the icon should take on the
89+
* in an item, and is expanded or focused,
90+
* then the icon should take on the
9191
* highlight color.
9292
*/
9393
:host(.in-item.select-expanded.select-fill-solid) .select-wrapper .select-icon,
94-
:host(.in-item.select-expanded.ion-touched.ion-invalid.select-fill-solid) .select-wrapper .select-icon {
94+
:host(.in-item.select-expanded.ion-touched.ion-invalid.select-fill-solid) .select-wrapper .select-icon,
95+
:host(.in-item.has-focus.select-fill-solid) .select-wrapper .select-icon,
96+
:host(.in-item.has-focus.ion-touched.ion-invalid.select-fill-solid) .select-wrapper .select-icon {
9597
color: var(--highlight-color);
9698
}

0 commit comments

Comments
 (0)