Created
June 21, 2021 19:42
-
-
Save hboylan/c1822a9fddaae1fa1a4927d7fc347d57 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export const Alert = styled.div<AlertStyle>` | |
background-color: ${({ type }) => secondaryAlertStyles[type]}; | |
border-radius: ${({ theme }) => theme.shape!.borderRadius}; | |
box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.2); | |
display: flex; | |
opacity: ${({ active }) => (active ? 1 : 0)}; | |
overflow: hidden; | |
${AccentBar} { | |
background-color: ${({ type }) => primaryAlertStyles[type]}; | |
} | |
` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment