Use medium weight if summary is present

This commit is contained in:
Chewbacca 2023-04-04 14:06:54 -04:00
parent 5fa8a21403
commit 2211c6ec67
1 changed files with 6 additions and 1 deletions

View File

@ -120,7 +120,12 @@ const Toast = (props: IToast) => {
{renderIcon()} {renderIcon()}
</div> </div>
<Text size='sm' data-testid='toast-message' className='pt-0.5'> <Text
size='sm'
data-testid='toast-message'
className='pt-0.5'
weight={typeof summary === 'undefined' ? 'normal' : 'medium'}
>
{renderText(message)} {renderText(message)}
</Text> </Text>
</HStack> </HStack>