Use semantic heading on dialog component (#7383)
* use semantic heading on dialog Signed-off-by: Kerry Archibald <kerrya@element.io> * tidy styles Signed-off-by: Kerry Archibald <kerrya@element.io> * un-flex text centering Signed-off-by: Kerry Archibald <kerrya@element.io>
This commit is contained in:
parent
43839adec0
commit
b174cc8963
3 changed files with 10 additions and 11 deletions
|
@ -27,6 +27,7 @@ import { MatrixClientPeg } from '../../../MatrixClientPeg';
|
|||
import { _t } from "../../../languageHandler";
|
||||
import MatrixClientContext from "../../../contexts/MatrixClientContext";
|
||||
import { replaceableComponent } from "../../../utils/replaceableComponent";
|
||||
import Heading from '../typography/Heading';
|
||||
import { IDialogProps } from "./IDialogProps";
|
||||
|
||||
interface IProps extends IDialogProps {
|
||||
|
@ -141,10 +142,10 @@ export default class BaseDialog extends React.Component<IProps> {
|
|||
'mx_Dialog_headerWithButton': !!this.props.headerButton,
|
||||
'mx_Dialog_headerWithCancel': !!cancelButton,
|
||||
})}>
|
||||
<div className={classNames('mx_Dialog_title', this.props.titleClass)} id='mx_BaseDialog_title'>
|
||||
<Heading size='h2' className={classNames('mx_Dialog_title', this.props.titleClass)} id='mx_BaseDialog_title'>
|
||||
{ headerImage }
|
||||
{ this.props.title }
|
||||
</div>
|
||||
</Heading>
|
||||
{ this.props.headerButton }
|
||||
{ cancelButton }
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue