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

Commit

Permalink
Hidden toast by default (sc2536) (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
guerrato authored Mar 9, 2022
1 parent 47ed3a2 commit eeeac50
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lib/components/common/Toast/Toast.styles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,12 @@ export const StyledToast = styled.div((props: ToastProps) => {
bottom: ${toastConfig.position.initial.bottom};
left: ${toastConfig.position.initial.left};
transform: ${`translateX(${toastConfig.position.initial.transformX}) translateY(${toastConfig.position.initial.transformY})`};
display: none;
opacity: 0;
&.show {
display: unset;
opacity: 1;
${animation}
}
`
Expand Down

0 comments on commit eeeac50

Please sign in to comment.