Skip to content

fix(time-picker): high contrast visibility of outlines in focus and hover states #6129

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 6 commits into from
Dec 20, 2022
5 changes: 5 additions & 0 deletions src/components/time-picker/time-picker.scss
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@
&:focus {
@apply bg-foreground-2
outline-none;
z-index: theme("zIndex.header");
outline-offset: 0;
}
&:active {
@apply bg-foreground-3;
Expand Down Expand Up @@ -62,11 +64,14 @@
font-medium;
&:hover {
box-shadow: inset 0 0 0 2px var(--calcite-ui-foreground-2);
z-index: theme("zIndex.header");
}
&:focus,
&:hover:focus {
@apply outline-none;
box-shadow: inset 0 0 0 2px var(--calcite-ui-brand);
z-index: theme("zIndex.header");
outline-offset: 0;
}
}

Expand Down