Skip to content

Commit

Permalink
style: make blurred the backdrop on Modal and Drawer components (#1918)
Browse files Browse the repository at this point in the history
* styles: make blurred the backdrop on Modal and Drawer components

* style: make blurred the backdrop on Drawer component

Co-authored-by: Tahimi <tahimileon@gmail.com>
  • Loading branch information
gtallesb and TahimiLeonBravo committed Oct 17, 2020
1 parent c1eee4a commit 1d10ead
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/components/Drawer/styled/backDrop.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ const StyledBackDrop = attachThemeAttrs(styled.div)`
position: fixed;
z-index: 1000000;
opacity: 1;
backdrop-filter: blur(5px);
`;

export default StyledBackDrop;
2 changes: 2 additions & 0 deletions src/components/Modal/styled/backDrop.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,14 @@ const StyledBackDrop = attachThemeAttrs(styled.div)`
align-items: center;
position: fixed;
transition: opacity 0.3s linear, z-index 0.3s linear;
${props =>
props.isOpen &&
`
visibility: visible;
z-index: 1000000;
opacity: 1;
backdrop-filter: blur(5px);
`};
`;

Expand Down

0 comments on commit 1d10ead

Please sign in to comment.