Skip to content
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

feat(checkbox): add WCAG AA recommended minimum 24px square hotspot optimized for touch users #7773

Merged
merged 9 commits into from
Sep 20, 2023
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,23 @@
}

.toggle {
@apply focus-base;
@apply focus-base relative;

&:active,
&:focus,
&:focus-visible {
@apply focus-outset;
}

&::after {
content: "";
inset-block-start: 50%;
inset-inline-start: 50%;
min-block-size: 24px;
eriklharper marked this conversation as resolved.
Show resolved Hide resolved
min-inline-size: 24px;
position: absolute;
transform: translateX(-50%) translateY(-50%);
}
}

@include disabled();
Expand Down
Loading