Skip to content

Commit

Permalink
make focus outlines a bit more visible
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristopherChudzicki committed Feb 24, 2025
1 parent 52c71f2 commit ef55f4a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions frontends/main/src/app-pages/DashboardPage/DashboardPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,10 @@ const TabsContainer = styled(TabList)(({ theme }) => ({
a: {
padding: "0",
opacity: "1",

"&:focus-visible": {
outlineOffset: "-1px",
},
},
"&:hover": {
a: {
Expand Down
5 changes: 5 additions & 0 deletions frontends/ol-components/src/components/Checkbox/Checkbox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,11 @@ const Container = styled.div`
&& input[type="checkbox"] {
margin: 0;
margin-right: 4px;
/* Help avoid focus outline from being cutoff */
:focus-visible {
outline-offset: -1px;
}
}
${containerStyles}
Expand Down

0 comments on commit ef55f4a

Please sign in to comment.