accessibility: read message box header title correctly (#21)

This commit is contained in:
kunzheng 2020-02-10 18:56:18 -08:00 коммит произвёл GitHub
Родитель 08ecf1b30c
Коммит 77dba17e12
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 3 добавлений и 1 удалений

2
src/assets/css/bootstrap-theme-slate.css поставляемый
Просмотреть файл

@ -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}