Skip to content

Commit e5291e3

Browse files
committed
fix z-index on modal dialog overlay so it covers topbar
1 parent dfb3143 commit e5291e3

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

app/ui/lib/DialogOverlay.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,9 @@
99
import { forwardRef } from 'react'
1010

1111
export const DialogOverlay = forwardRef<HTMLDivElement>((_, ref) => (
12-
<div ref={ref} aria-hidden className="fixed inset-0 z-10 overflow-auto bg-scrim" />
12+
<div
13+
ref={ref}
14+
aria-hidden
15+
className="z-modalOverlay fixed inset-0 overflow-auto bg-scrim"
16+
/>
1317
))

tailwind.config.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,9 @@ module.exports = {
4848
modal: '40',
4949
sideModalDropdown: '40',
5050
sideModal: '30',
51-
topBarDropdown: '25',
52-
topBar: '20',
51+
modalOverlay: '25',
52+
topBarDropdown: '20',
53+
topBar: '15',
5354
popover: '10',
5455
contentDropdown: '10',
5556
content: '0',

0 commit comments

Comments
 (0)