accessibility: read message box header title correctly (#21)
This commit is contained in:
Родитель
08ecf1b30c
Коммит
77dba17e12
|
@ -5801,6 +5801,8 @@ button.close {
|
|||
.modal-title {
|
||||
margin-bottom: 0;
|
||||
line-height: 1.5;
|
||||
font-size: 1.17rem;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.modal-body {
|
||||
|
|
|
@ -68,7 +68,7 @@ export default class MessageBox extends React.Component<IMessageBoxProps, IMessa
|
|||
<Modal className="messagebox-modal"
|
||||
isOpen={this.state.isOpen}
|
||||
onClosed={this.onClosed}>
|
||||
<ModalHeader toggle={this.toggle}>{this.props.title}</ModalHeader>
|
||||
<ModalHeader tag="div" toggle={this.toggle}>{this.props.title}</ModalHeader>
|
||||
<ModalBody>{this.getMessage(this.props.message)}</ModalBody>
|
||||
{!this.props.hideFooter && <ModalFooter onClick={this.onFooterClick}>
|
||||
{this.props.children}
|
||||
|
|
Загрузка…
Ссылка в новой задаче