Skip to content

Commit

Permalink
actually fixing book hover highlight
Browse files Browse the repository at this point in the history
  • Loading branch information
JimmyPaolini committed Apr 12, 2021
1 parent 5f3f417 commit fe31c42
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,6 @@
"author": "Jimmy Paolini",
"description": "lexico",
"repository": "https://github.com/JimmyPaolini/Lexico",
"version": "0.9.2",
"version": "0.9.3",
"license": "MIT"
}
6 changes: 6 additions & 0 deletions web/src/components/literature/LiteratureBook.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export default function LiteratureBook({ book, isLast }: Props) {
button
onClick={() => setExpanded((expanded) => !expanded)}
key={book.id}
classes={{ button: classes.hideHoverHighlight }}
disableRipple
disableTouchRipple
>
Expand Down Expand Up @@ -57,6 +58,11 @@ const useStyles = makeStyles((theme: any) => ({
paddingBottom: 0,
},
},
hideHoverHighlight: {
"&:hover": {
backgroundColor: "inherit",
},
},
inset1: {
marginLeft: theme.spacing(1),
},
Expand Down

0 comments on commit fe31c42

Please sign in to comment.