Skip to content

Commit

Permalink
Merge 23fd8cd into ac0b860
Browse files Browse the repository at this point in the history
  • Loading branch information
nrawji committed Dec 18, 2020
2 parents ac0b860 + 23fd8cd commit 02d00e5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/magicbox/SuggestionsManager.ts
Expand Up @@ -232,7 +232,8 @@ export class SuggestionsManager {
return $$('div', {
className: this.suggestionListboxClassName,
id: this.suggestionListboxID,
role: 'listbox'
role: 'listbox',
ariaLabel: 'Search Suggestions'
});
}

Expand Down
1 change: 1 addition & 0 deletions unitTests/magicbox/SuggestionsManagerTest.ts
Expand Up @@ -60,6 +60,7 @@ export function SuggestionsManagerTest() {
expect(suggestionsElement).toBeTruthy();
expect(suggestionsElement.children.length).toBe(1);
expect(suggestionsElement.getAttribute('role')).toBe('listbox');
expect(suggestionsElement.getAttribute('aria-label')).toBe('Search Suggestions');
});

it('adds an empty option child to the suggestions parent when emptying sugggestions', () => {
Expand Down

0 comments on commit 02d00e5

Please sign in to comment.