Skip to content

Commit

Permalink
docs: add focus outline to checkboxes for accessibility (#1994)
Browse files Browse the repository at this point in the history
  • Loading branch information
curtgrimes committed Jul 27, 2022
1 parent dbfd001 commit 6c46177
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/.vitepress/theme/components/FunctionsList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -177,12 +177,13 @@ input {
}
.checkbox {
@apply inline-flex items-center my-auto cursor-pointer select-none;
@apply inline-flex items-center my-auto cursor-pointer select-none rounded px-2;
}
.checkbox input {
appearance: none;
padding: 0;
margin: 0;
-webkit-print-color-adjust: exact;
color-adjust: exact;
display: inline-block;
Expand Down
6 changes: 6 additions & 0 deletions packages/.vitepress/theme/styles/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,9 @@ html.dark {
.VPSidebarGroup .link {
padding: 3px 0 !important;
}

#app a:focus-visible,
#app button:focus-visible,
#app input[type="checkbox"]:focus-visible {
@apply outline-1 outline-primary ring-2 ring-primary;
}

0 comments on commit 6c46177

Please sign in to comment.