Skip to content

Commit

Permalink
fix: search input a11y issue (#679)
Browse files Browse the repository at this point in the history
  • Loading branch information
endiliey authored and Sylvain Pace committed May 13, 2019
1 parent 57902bf commit a68d2a4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/DocSearch.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ class DocSearch {
this.autocompleteOptions.cssClasses || {};
this.autocompleteOptions.cssClasses.prefix =
this.autocompleteOptions.cssClasses.prefix || 'ds';
this.autocompleteOptions.ariaLabel = this.autocompleteOptions.ariaLabel || $(this.input)[0].getAttribute('aria-label') || 'search input';


this.isSimpleLayout = layout === 'simple';
Expand Down

0 comments on commit a68d2a4

Please sign in to comment.