Skip to content

Commit

Permalink
Explicitly hide the focus ring in Chrome
Browse files Browse the repository at this point in the history
  • Loading branch information
eatyourgreens committed Jun 27, 2024
1 parent ea7e3f6 commit 30cda16
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ export const ConsensusLine = styled('g')`
cursor: pointer;
filter: drop-shadow(1px 1px 4px #5c5c5c);
&:focus {
outline: none;
}
&:focus-visible {
${props => css`outline: solid 4px ${props.focusColor};`}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ import draggable from '../draggable'
const STROKE_WIDTH = 2
const SELECTED_STROKE_WIDTH = 4

const StyledGroup = styled('g')`
const StyledGroup = styled.g`
&:focus {
outline: none;
}
&:focus-visible {
${(props) =>
css`
Expand Down

0 comments on commit 30cda16

Please sign in to comment.