Skip to content

Commit 14cc92f

Browse files
committed
MenuRenderer, OverflowMenu: Ensure menus work in Modal components
1 parent 18a9c98 commit 14cc92f

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

.changeset/tender-olives-sell.md

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
'braid-design-system': patch
3+
---
4+
5+
---
6+
updated:
7+
- MenuRenderer
8+
- OverflowMenu
9+
---
10+
11+
**MenuRenderer, OverflowMenu:** Fixes a bug where menus could be obscured when rendered inside a `Dialog` or `Drawer` component.

packages/braid-design-system/src/lib/components/MenuRenderer/MenuRenderer.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ export const MenuRenderer = ({
363363
dispatch({ type: BACKDROP_CLICK });
364364
}}
365365
position="fixed"
366-
zIndex="dropdownBackdrop"
366+
zIndex="modal"
367367
top={0}
368368
left={0}
369369
className={styles.backdrop}
@@ -423,7 +423,7 @@ export function Menu({
423423
<Box
424424
role="menu"
425425
position={position}
426-
zIndex="dropdown"
426+
zIndex="modal"
427427
boxShadow={placement === 'top' ? 'small' : 'medium'}
428428
borderRadius={borderRadius}
429429
background="surface"

0 commit comments

Comments
 (0)