Skip to content

Commit 8672c49

Browse files
(Modal): replace h2 with Text
1 parent 1bd65db commit 8672c49

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/scripts/Modal.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import React, {
99
} from 'react';
1010
import classnames from 'classnames';
1111
import { Button } from './Button';
12+
import { Text } from './Text';
1213
import { useEventCallback } from './hooks';
1314

1415
/**
@@ -49,7 +50,9 @@ export const ModalHeader: FC<ModalHeaderProps> = (props) => {
4950
const hdClassNames = classnames(className, 'slds-modal__header');
5051
return (
5152
<div className={hdClassNames} {...rprops}>
52-
<h2 className='slds-text-heading_medium'>{title}</h2>
53+
<Text tag='h2' category='heading' type='medium'>
54+
{title}
55+
</Text>
5356
{tagline ? <p className='slds-m-top_x-small'>{tagline}</p> : null}
5457
{closeButton ? (
5558
<Button

0 commit comments

Comments
 (0)