Skip to content

Commit

Permalink
Prevent SelectionFAB from being behind the "ChapterCard" checkbox (#445)
Browse files Browse the repository at this point in the history
The MUI Checkbox component has a z-index of 1, which causes it to register the mouse events instead of the "SelectionFAB" which is visually in front of it
  • Loading branch information
schroda authored Nov 5, 2023
1 parent 4ab6172 commit 9284e46
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/manga/SelectionFAB.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ export const SelectionFAB: React.FC<SelectionFABProps> = (props) => {
...DEFAULT_FAB_STYLE,
height: `calc(${DEFAULT_FAB_STYLE.height} + 1)`,
pt: 1,
zIndex: 1, // the "Checkbox" (MUI) component of the "ChapterCard" has z-index 1, which causes it to take over the mouse events
}}
ref={anchorEl}
>
Expand Down

0 comments on commit 9284e46

Please sign in to comment.