Having an issue with a CSS property. I have designed a modal that includes inputs and labels, and I want to blur the background content. However, the problem I am facing is that the blur effect is also being applied to all elements inside the container, including text and inputs. Any suggestions on how to resolve this? Here's my container code:
const StyledModal = styled.div`
position: relative;
overflow: auto;
z-index: 100;
width: fit-content;
max-height: fit-content;
padding: 47px 41px 61px;
display: flex;
border: 1px solid ${({ theme }) => theme.colors.primary};
border-radius: ${({ theme }) => theme.borderRadiusLarge};
background: linear-gradient(
180deg,
rgba(92, 192, 190, 0.4) 0%,
rgba(92, 192, 190, 0.4) 100%
);
backdrop-filter: blur(200px);
`;
Appreciate any help offered on solving this dilemma!