Skip to content

Commit

Permalink
Use outline instead of background-color
Browse files Browse the repository at this point in the history
Does not affect contrast-ratio
  • Loading branch information
eps1lon committed Nov 11, 2019
1 parent 60e408e commit 566eb39
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/src/pages/customization/default-theme/DefaultTheme.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,14 @@ ObjectEntryLabel.propTypes = { objectKey: PropTypes.any, objectValue: PropTypes.
const useObjectEntryStyles = makeStyles({
treeItem: {
'&:focus > $treeItemContent': {
backgroundColor: lighten('#333', 0.3),
backgroundColor: 'inherit',
outline: `2px dashed ${lighten('#333', 0.3)}`,
},
},
treeItemContent: {
'&:hover': {
backgroundColor: lighten('#333', 0.1),
backgroundColor: 'inherit',
outline: `1px dashed ${lighten('#333', 0.3)}`,
},
},
});
Expand Down

0 comments on commit 566eb39

Please sign in to comment.