From 3e1e05ab4ffabbf180972650818a3ae3468dbdfb Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Wed, 9 Oct 2019 10:12:06 -0400 Subject: [PATCH] ally on notification bar --- src/content/notificationBar.ts | 1 + src/notification/bar.html | 2 +- src/notification/bar.js | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/content/notificationBar.ts b/src/content/notificationBar.ts index de2ba77046..4974f53ad8 100644 --- a/src/content/notificationBar.ts +++ b/src/content/notificationBar.ts @@ -517,6 +517,7 @@ document.addEventListener('DOMContentLoaded', (event) => { iframe.id = 'bit-notification-bar-iframe'; const frameDiv = document.createElement('div'); + frameDiv.setAttribute('aria-live', 'polite'); frameDiv.id = 'bit-notification-bar'; frameDiv.style.cssText = 'height: 42px; width: 100%; top: 0; left: 0; padding: 0; position: fixed; ' + 'z-index: 2147483647; visibility: visible;'; diff --git a/src/notification/bar.html b/src/notification/bar.html index c5ba4669e9..b17dc4394e 100644 --- a/src/notification/bar.html +++ b/src/notification/bar.html @@ -9,7 +9,7 @@ - + diff --git a/src/notification/bar.js b/src/notification/bar.js index 21c7c58a37..5ce6402d20 100644 --- a/src/notification/bar.js +++ b/src/notification/bar.js @@ -40,6 +40,7 @@ document.addEventListener('DOMContentLoaded', () => { document.getElementById('logo-link').title = i18n.appName; closeButton.title = i18n.close; + closeButton.setAttribute('aria-label', i18n.close); if (bodyRect.width < 768) { document.querySelector('#template-add .add-save').textContent = i18n.yes;