We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
h2
Text
1 parent 1bd65db commit 8672c49Copy full SHA for 8672c49
src/scripts/Modal.tsx
@@ -9,6 +9,7 @@ import React, {
9
} from 'react';
10
import classnames from 'classnames';
11
import { Button } from './Button';
12
+import { Text } from './Text';
13
import { useEventCallback } from './hooks';
14
15
/**
@@ -49,7 +50,9 @@ export const ModalHeader: FC<ModalHeaderProps> = (props) => {
49
50
const hdClassNames = classnames(className, 'slds-modal__header');
51
return (
52
<div className={hdClassNames} {...rprops}>
- <h2 className='slds-text-heading_medium'>{title}</h2>
53
+ <Text tag='h2' category='heading' type='medium'>
54
+ {title}
55
+ </Text>
56
{tagline ? <p className='slds-m-top_x-small'>{tagline}</p> : null}
57
{closeButton ? (
58
<Button
0 commit comments