diff --git a/app/js/toast.js b/app/js/toast.js index 9477516..b893eb7 100644 --- a/app/js/toast.js +++ b/app/js/toast.js @@ -1,3 +1,4 @@ +import * as Localizer from './localizer.js'; import { wait, waitForFocus } from './util.js'; export default class Toast { @@ -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); }); diff --git a/app/locales/en.json b/app/locales/en.json index 462574d..ed6679d 100644 --- a/app/locales/en.json +++ b/app/locales/en.json @@ -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": {