Skip to content

Commit

Permalink
add aria-label to Popup close button (#4799)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewharvey authored and mourner committed Jun 7, 2017
1 parent bef9966 commit 84cc4a9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ui/popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 84cc4a9

Please sign in to comment.