From f5aa2985c5186a43659f69a1aaab9b020bccd7f2 Mon Sep 17 00:00:00 2001 From: Andrew Harvey Date: Sat, 25 Feb 2017 23:19:22 +1100 Subject: [PATCH] aria-label on the Clear button --- lib/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/index.js b/lib/index.js index f5181e53..041d6f59 100644 --- a/lib/index.js +++ b/lib/index.js @@ -60,6 +60,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');