Skip to content

Commit

Permalink
fix: Resolves content-manager header having a higher z-index than modal
Browse files Browse the repository at this point in the history
Co-authored-by: AqidaHaidari <42426077+AqidaHaidari@users.noreply.github.com>
  • Loading branch information
gitstart and AqidaHaidari committed Sep 12, 2023
1 parent 13ccb77 commit d3a15b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/strapi-design-system/src/Dialog/Dialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export const Dialog = ({ onClose, title, as = 'h2', isOpen, id, ...props }: Dial

return (
<Portal>
<DialogWrapper padding={8} position="fixed" zIndex={4}>
<DialogWrapper padding={8} position="fixed" zIndex={10}>
<FocusTrap>
<DismissibleLayer onEscapeKeyDown={onClose} onPointerDownOutside={onClose}>
<DialogContainer
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const ModalLayout = ({ onClose, labelledBy, ...props }: ModalLayoutProps)
return (
<Portal>
<ModalContext.Provider value={onClose}>
<ModalWrapper justifyContent="center" paddingLeft={8} paddingRight={8} position="fixed" zIndex={4}>
<ModalWrapper justifyContent="center" paddingLeft={8} paddingRight={8} position="fixed" zIndex={10}>
<FocusTrap>
<DismissibleLayer onEscapeKeyDown={onClose} onPointerDownOutside={onClose}>
<Box
Expand Down

0 comments on commit d3a15b5

Please sign in to comment.