Skip to content
This repository has been archived by the owner on Mar 7, 2023. It is now read-only.

Commit

Permalink
fix(modal): added zindex (#222)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lyncee59 authored Jan 15, 2019
1 parent 61b2545 commit 628ffb8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Organisms/Modal/ModalBackground.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ const Wrapper = styled.div`
align-items: center;
background-color: ${theme('modalBackgroundColor')};
transform: translateZ(0);
z-index: ${theme('modalZIndex')};
`

const ModalBackground = ({ children, ...rest }: PropsType) => (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ exports[`ModalBackground should render correctly 1`] = `
-webkit-transform: translateZ(0);
-ms-transform: translateZ(0);
transform: translateZ(0);
z-index: 1005;
}
<ModalBackground>
Expand Down
1 change: 1 addition & 0 deletions src/Tools/theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ const theme = {
modalForegroundColor: palette.white,
modalShadowColor: palette.gray1,
modalBorderColor: palette.gray2,
modalZIndex: 1005,
navbarBrandZIndex: 1001,
navbarTogglerZIndex: 1001,
navbarDropdownContentBackgroundColor: palette.white,
Expand Down

0 comments on commit 628ffb8

Please sign in to comment.