Skip to content

Commit

Permalink
Merge pull request #1396 from artsy/DIA-791-audit-and-remove-polyfill…
Browse files Browse the repository at this point in the history
…s-that-are-no-longer-needed--2

fix: moves focus-visible styling into global styles
  • Loading branch information
dzucconi authored Aug 26, 2024
2 parents 72edec6 + cfaa12e commit 7630ef1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/palette/src/helpers/injectGlobalStyles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@ export function injectGlobalStyles<P>(
box-sizing: inherit;
}
&:focus {
outline: 0;
}
&:focus-visible {
outline: 1px solid ${themeGet("colors.blue100")};
}
::selection {
background-color: ${themeGet("colors.blue15")};
color: ${themeGet("colors.black100")};
Expand Down

0 comments on commit 7630ef1

Please sign in to comment.