diff --git a/src/i18n/en-US.properties b/src/i18n/en-US.properties index 4e46b5f90..d2493c78c 100644 --- a/src/i18n/en-US.properties +++ b/src/i18n/en-US.properties @@ -54,6 +54,8 @@ find_next=Find next find_previous=Find previous # Button tooltip for closing the find bar find_close=Close +# Search input Aria-label attribute +find_label=Search input # Error messages # Default preview error message diff --git a/src/lib/viewers/doc/DocFindBar.js b/src/lib/viewers/doc/DocFindBar.js index b982f804f..e9bc3b426 100644 --- a/src/lib/viewers/doc/DocFindBar.js +++ b/src/lib/viewers/doc/DocFindBar.js @@ -82,6 +82,7 @@ class DocFindBar extends EventEmitter { // Find input field this.findFieldEl = document.createElement('input'); this.findFieldEl.classList.add('bp-doc-find-field'); + this.findFieldEl.setAttribute('aria-label', __('find_label')); this.findBarEl.appendChild(this.findFieldEl); // Match Results Count