Skip to content

Commit

Permalink
fix: added css on toast as per figma design
Browse files Browse the repository at this point in the history
  • Loading branch information
kundan singh authored and kundan singh committed Jun 18, 2024
1 parent 64e727d commit c731202
Showing 1 changed file with 20 additions and 21 deletions.
41 changes: 20 additions & 21 deletions packages/molecules/src/components/toast/Toast.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ const Toast: React.FC<ToastProps> = ({ status, title, description }) => {
isClosable: true,
render: ({ onClose }) => (
<Box
display="flex"
alignItems="center"
bg="#FFFFFF"
borderLeft="8px solid"
borderColor={color}
Expand All @@ -57,33 +55,34 @@ const Toast: React.FC<ToastProps> = ({ status, title, description }) => {
onClick={onClose}
data-testid="close-button"
/>
{icon && (
<Icon
as={icon}
w={6}
h={6}
color={color}
mr={3}
data-testid={`toast-icon-${status}`}
/>
)}
<Flex
justifyContent={'center'}
justifyContent={'flex-start'}
alignItems={'center'}
flexDirection={'column'}
mb="6px"
>
{icon && (
<Icon
as={icon}
w={6}
h={6}
color={color}
mr={2}
data-testid={`toast-icon-${status}`}
/>
)}
<Typography
variant="subTitleSemibold"
text={title}
/>
{description && (
<Typography
variant="subTitleRegular"
text={description}
data-testid={`toast_description`}
/>
)}
</Flex>
{description && (
<Typography
variant="subTitleRegular"
text={description}
data-testid={`toast_description`}
style={{ marginLeft: '2rem' }}
/>
)}
</Box>
)
})
Expand Down

0 comments on commit c731202

Please sign in to comment.