Skip to content

fix(select): update the focus and hover chevron icon color and select focus and hover background color #9160

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
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 12 additions & 4 deletions packages/calcite-components/src/components/select/select.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@
.wrapper {
@apply relative flex items-stretch;
inline-size: var(--select-width);

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

@include disabled();
Expand Down Expand Up @@ -79,10 +87,6 @@
&:focus {
@apply focus-inset;
}

&:hover {
@apply bg-foreground-2;
}
}

// override user agent stylesheet disabled styling
Expand All @@ -94,6 +98,10 @@ select:disabled {
@apply border-color-input text-color-2 pointer-events-none absolute inset-y-0 flex items-center border-0 border-solid bg-transparent;
inset-inline-end: theme("inset.0");
border-inline-width: theme("borderWidth.0") theme("borderWidth.DEFAULT");

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

:host([status="invalid"]) {
Expand Down