Skip to content

Commit

Permalink
MenuRenderer, OverflowMenu: Ensure menus work in Modal components (#1665
Browse files Browse the repository at this point in the history
)
  • Loading branch information
felixhabib authored Dec 9, 2024
1 parent 18a9c98 commit f44473a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
11 changes: 11 additions & 0 deletions .changeset/tender-olives-sell.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
'braid-design-system': patch
---

---
updated:
- MenuRenderer
- OverflowMenu
---

**MenuRenderer, OverflowMenu:** Fixes a bug where menus could be obscured when rendered inside a `Dialog` or `Drawer` component.
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ export const MenuRenderer = ({
dispatch({ type: BACKDROP_CLICK });
}}
position="fixed"
zIndex="dropdownBackdrop"
zIndex="modal"
top={0}
left={0}
className={styles.backdrop}
Expand Down Expand Up @@ -423,7 +423,7 @@ export function Menu({
<Box
role="menu"
position={position}
zIndex="dropdown"
zIndex="modal"
boxShadow={placement === 'top' ? 'small' : 'medium'}
borderRadius={borderRadius}
background="surface"
Expand Down

0 comments on commit f44473a

Please sign in to comment.