Skip to content

Commit

Permalink
♿ Add a missing label to a button
Browse files Browse the repository at this point in the history
  • Loading branch information
ENT8R committed Apr 22, 2024
1 parent eaba8e1 commit 517679c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions app/js/toast.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import * as Localizer from './localizer.js';
import { wait, waitForFocus } from './util.js';

export default class Toast {
Expand All @@ -21,6 +22,7 @@ export default class Toast {
// Add a close button
this.close = document.createElement('button');
this.close.classList.add('btn', 'btn-clear', 'float-right');
this.close.setAttribute('aria-label', Localizer.message('accessibility.closeNotification'));
this.close.addEventListener('click', () => {
this.container.removeChild(this.toast);
});
Expand Down
3 changes: 2 additions & 1 deletion app/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,8 @@
"openFaq": "Open frequently asked questions",
"openSettings": "Open settings",
"shareQuery": "Share the current query",
"filter": "Apply a filter to the selection"
"filter": "Apply a filter to the selection",
"closeNotification": "Close notification"
},
"mapillary": {
"empty": {
Expand Down

0 comments on commit 517679c

Please sign in to comment.