Skip to content

Commit ca895e9

Browse files
authored
fix(input-date-picker): update the focus and hover chevron icon color (#9146)
**Related Issue:** [7712](#7712) ### Summary This updates `input-date-picker` chevron colors to be `--calcite-color-text-3` when idle and `--calcite-color-text-1` when hovered or pressed.
1 parent bdd19c7 commit ca895e9

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

packages/calcite-components/src/components/input-date-picker/input-date-picker.scss

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,18 @@
3737

3838
.input-wrapper {
3939
@apply relative;
40+
41+
.chevron-icon {
42+
color: var(--calcite-color-text-3);
43+
}
44+
45+
&:focus-within,
46+
&:active,
47+
&:hover {
48+
.chevron-icon {
49+
color: var(--calcite-color-text-1);
50+
}
51+
}
4052
}
4153

4254
.toggle-icon {

packages/calcite-components/src/components/input-date-picker/input-date-picker.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -681,6 +681,7 @@ export class InputDatePicker
681681
// we set tab index to -1 to prevent delegatesFocus from stealing focus before we can set it
682682
<span class={CSS.toggleIcon} tabIndex={-1}>
683683
<calcite-icon
684+
class={CSS.chevronIcon}
684685
icon={open ? "chevron-up" : "chevron-down"}
685686
scale={getIconScale(this.scale)}
686687
/>

packages/calcite-components/src/components/input-date-picker/resources.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,5 @@ export const CSS = {
1212
menuActive: "menu-container--active",
1313
toggleIcon: "toggle-icon",
1414
verticalArrowContainer: "vertical-arrow-container",
15+
chevronIcon: "chevron-icon",
1516
};

0 commit comments

Comments
 (0)