Skip to content

Commit

Permalink
feat(Modal): QUV-694 Add title attribute to Modal header title block
Browse files Browse the repository at this point in the history
  • Loading branch information
soslayando committed May 8, 2023
1 parent 7b5e716 commit 267a9b8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/core/src/components/Modal/Modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,11 @@ export const InternalModal: React.FC<ModalProps> = ({
{headerTitle && (
<Flex alignItems="inherit">
<ModalIcon status={status} />
<Heading size={status === 'base' ? 'h4' : 'h5'} truncateLine={1}>
<Heading
size={status === 'base' ? 'h4' : 'h5'}
truncateLine={1}
title={headerTitle}
>
{headerTitle}
</Heading>
</Flex>
Expand Down

0 comments on commit 267a9b8

Please sign in to comment.