Skip to content

Commit b187340

Browse files
authored
fix(select): update the focus and hover chevron icon color and select focus and hover background color (#9160)
**Related Issue:** [7714](#7714) ### Summary This updates `select` chevron colors to be `--calcite-color-text-3` when idle and `--calcite-color-text-1` when hovered or pressed. This also updates `select` background color to `bg-foreground-1` when hovered or pressed.
1 parent b7f096b commit b187340

File tree

1 file changed

+12
-4
lines changed
  • packages/calcite-components/src/components/select

1 file changed

+12
-4
lines changed

packages/calcite-components/src/components/select/select.scss

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,14 @@
1515
.wrapper {
1616
@apply relative flex items-stretch;
1717
inline-size: var(--select-width);
18+
19+
&:focus-within,
20+
&:active,
21+
&:hover {
22+
.icon {
23+
color: var(--calcite-color-text-1);
24+
}
25+
}
1826
}
1927

2028
@include disabled();
@@ -79,10 +87,6 @@
7987
&:focus {
8088
@apply focus-inset;
8189
}
82-
83-
&:hover {
84-
@apply bg-foreground-2;
85-
}
8690
}
8791

8892
// override user agent stylesheet disabled styling
@@ -94,6 +98,10 @@ select:disabled {
9498
@apply border-color-input text-color-2 pointer-events-none absolute inset-y-0 flex items-center border-0 border-solid bg-transparent;
9599
inset-inline-end: theme("inset.0");
96100
border-inline-width: theme("borderWidth.0") theme("borderWidth.DEFAULT");
101+
102+
.icon {
103+
color: var(--calcite-color-text-3);
104+
}
97105
}
98106

99107
:host([status="invalid"]) {

0 commit comments

Comments
 (0)