Skip to content

Commit

Permalink
Merge pull request #107 from andrewharvey/accessibility-fixes
Browse files Browse the repository at this point in the history
aria-label on the Clear button
  • Loading branch information
tristen authored Mar 11, 2017
2 parents cf5edd2 + f5aa298 commit bd4bea7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ MapboxGeocoder.prototype = {

this._clearEl = document.createElement('button');
this._clearEl.className = 'geocoder-icon geocoder-icon-close';
this._clearEl.setAttribute('aria-label', 'Clear');
this._clearEl.addEventListener('click', this._clear);

this._loadingEl = document.createElement('span');
Expand Down

0 comments on commit bd4bea7

Please sign in to comment.