Skip to content

Commit

Permalink
Use different dimensions for hover and focus
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon committed Nov 11, 2019
1 parent dcf43d8 commit eb375bb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions docs/src/pages/customization/default-theme/DefaultTheme.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,14 +80,13 @@ ObjectEntryLabel.propTypes = { objectKey: PropTypes.any, objectValue: PropTypes.
const useObjectEntryStyles = makeStyles({
treeItem: {
'&:focus > $treeItemContent': {
backgroundColor: 'inherit',
backgroundColor: lighten('#333', 0.08),
outline: `2px dashed ${lighten('#333', 0.3)}`,
},
},
treeItemContent: {
'&:hover': {
backgroundColor: 'inherit',
outline: `1px dashed ${lighten('#333', 0.3)}`,
backgroundColor: lighten('#333', 0.08),
},
},
});
Expand Down

0 comments on commit eb375bb

Please sign in to comment.