From 84cc4a9e3c431818a9b826647d38f785ebfbad87 Mon Sep 17 00:00:00 2001 From: Andrew Harvey Date: Thu, 8 Jun 2017 00:20:51 +1000 Subject: [PATCH] add aria-label to Popup close button (#4799) --- src/ui/popup.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ui/popup.js b/src/ui/popup.js index 1eeef6f1e84..5393c875f3e 100644 --- a/src/ui/popup.js +++ b/src/ui/popup.js @@ -224,6 +224,7 @@ class Popup extends Evented { if (this.options.closeButton) { this._closeButton = DOM.create('button', 'mapboxgl-popup-close-button', this._content); this._closeButton.type = 'button'; + this._closeButton.setAttribute('aria-label', 'Close popup'); this._closeButton.innerHTML = '×'; this._closeButton.addEventListener('click', this._onClickClose); }