LeaVerou / awesomplete

Ultra lightweight, usable, beautiful autocomplete with zero dependencies.

Home Page:http://leaverou.github.io/awesomplete/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ARIA Listbox must contain Options

heatherpekrul opened this issue · comments

I'm using the Axe Coconut Chrome extension (https://chrome.google.com/webstore/detail/axe-coconut/iobddmbdndbbbfjopjdgadphaoihpojp?hl=en) to test for accessibility and ADA compliance, and I'm seeing an issue being raised on the options generated by Awesomplete inside the UL with the role "listbox". Here is the error:

Issue description
Ensures elements with an ARIA role that require child roles contain them

Impact: critical

Element location
#awesomplete_list_1
Element source

    To solve this violation, you need to: Fix the following: Required ARIA child role not present: option

Solutions:
Simply adding role="option" onto the generated LIs inside the UL with the role "listbox" fixes the issue.