Skip to content

Commit 566eb39

Browse files
committed
Use outline instead of background-color
Does not affect contrast-ratio
1 parent 60e408e commit 566eb39

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

docs/src/pages/customization/default-theme/DefaultTheme.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,12 +80,14 @@ ObjectEntryLabel.propTypes = { objectKey: PropTypes.any, objectValue: PropTypes.
8080
const useObjectEntryStyles = makeStyles({
8181
treeItem: {
8282
'&:focus > $treeItemContent': {
83-
backgroundColor: lighten('#333', 0.3),
83+
backgroundColor: 'inherit',
84+
outline: `2px dashed ${lighten('#333', 0.3)}`,
8485
},
8586
},
8687
treeItemContent: {
8788
'&:hover': {
88-
backgroundColor: lighten('#333', 0.1),
89+
backgroundColor: 'inherit',
90+
outline: `1px dashed ${lighten('#333', 0.3)}`,
8991
},
9092
},
9193
});

0 commit comments

Comments
 (0)