1
0
mirror of https://github.com/flarum/core.git synced 2025-10-13 07:54:25 +02:00

Add 'Close' & 'Back' aria-label attributes to buttons. (#3161)

* Add aria-label attributes to close buttons in nav, welcome hero, modal close.
* Replace title with aria-label in nav back button.
This commit is contained in:
Garrett Grimm
2021-11-11 12:55:46 -08:00
committed by GitHub
parent 4ffc26a13a
commit 9b9ca53b81
4 changed files with 11 additions and 1 deletions

View File

@@ -1,3 +1,4 @@
import app from '../../common/app';
import Component from '../Component';
import Alert, { AlertAttrs } from './Alert';
import Button from './Button';
@@ -91,6 +92,7 @@ export default abstract class Modal<ModalAttrs = {}> extends Component<ModalAttr
icon: 'fas fa-times',
onclick: this.hide.bind(this),
className: 'Button Button--icon Button--link',
'aria-label': app.translator.trans('core.lib.modal.close'),
})}
</div>
)}