Skip to content

fix(input-date-picker): update the focus and hover chevron icon color #9146

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Apr 23, 2024
Merged
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,17 @@

.input-wrapper {
@apply relative;

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

&:hover,
&:active {
.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",
};