Skip to content
This repository was archived by the owner on May 24, 2022. It is now read-only.

Commit

Permalink
feat: add backdrop-filter to drawer and modal backdrop
Browse files Browse the repository at this point in the history
  • Loading branch information
Gregor Adams committed Aug 22, 2021
1 parent 1f4c1a4 commit cbb5d04
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/molecules/drawer/styled.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ export const StyledDrawerBackdrop = styled.div`
right: 0;
bottom: 0;
left: 0;
background: rgba(0, 0, 0, 0.3);
background: rgba(0, 0, 0, 0.5);
backdrop-filter: blur(${pxToRem(4)}) saturate(50%);
`;

export const StyledDrawerHeader = styled.header`
Expand Down
3 changes: 2 additions & 1 deletion src/molecules/modal/styled.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,11 @@ export const StyledModalBackdrop = styled.div`
right: 0;
bottom: 0;
left: 0;
background: rgba(0, 0, 0, 0.3);
background: rgba(0, 0, 0, 0.5);
${({ theme }) => css`
${theme.mq.m} {
display: block;
backdrop-filter: blur(${pxToRem(4)}) saturate(50%);
}
`};
`;
Expand Down

0 comments on commit cbb5d04

Please sign in to comment.