Skip to content

Commit

Permalink
fix(input-date-picker): update the focus and hover chevron icon color (
Browse files Browse the repository at this point in the history
…#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.
  • Loading branch information
aPreciado88 authored Apr 23, 2024
1 parent bdd19c7 commit ca895e9
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,18 @@

.input-wrapper {
@apply relative;

.chevron-icon {
color: var(--calcite-color-text-3);
}

&:focus-within,
&:active,
&:hover {
.chevron-icon {
color: var(--calcite-color-text-1);
}
}
}

.toggle-icon {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -681,6 +681,7 @@ export class InputDatePicker
// we set tab index to -1 to prevent delegatesFocus from stealing focus before we can set it
<span class={CSS.toggleIcon} tabIndex={-1}>
<calcite-icon
class={CSS.chevronIcon}
icon={open ? "chevron-up" : "chevron-down"}
scale={getIconScale(this.scale)}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ export const CSS = {
menuActive: "menu-container--active",
toggleIcon: "toggle-icon",
verticalArrowContainer: "vertical-arrow-container",
chevronIcon: "chevron-icon",
};

0 comments on commit ca895e9

Please sign in to comment.