-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[5.2] Awesomplete accessibility fix #39371
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[5.2] Awesomplete accessibility fix #39371
Conversation
|
@JackKellyUK right now the label you're applying will only work for English language. What I'll suggest is either
Although I'm the original author of the script (#21438) I think the whole script could be rewritten with way less code (eg the |
Thanks for the suggestion. Does this implementation look correct to you? 8eefbd4 |
LGTM |
|
The new string should probably just be "Search Results" - otherwise it will be "list of Results list" |
|
This pull request has been automatically rebased to 4.3-dev. |
|
Awesomplete has not been updated in over 3 years, although the issue has been fixed in that library... |
|
Joomla is using the latest version: Line 45 in 87012fa
https://www.npmjs.com/package/awesomplete?activeTab=versions |
Indeed, which means the fix that has been done in that library is not included in Joomla, therefore the fix here is still relevant. |
|
i must be missing something as i dont see any fix upstream just an open issue |
No problem, Brian @brianteeman. My understanding is this: At the Awesomplete project, has been created a PR LeaVerou/awesomplete#17200 that fixes the issue we are having in Joomla. Because our issue comes from the library we are using apparently. The PR that fixes the issue in Awesomplete has been merged, but after 1.1.5 was released, which is the version we are using (but also the last official update). |
|
This pull request has been automatically rebased to 4.4-dev. |
|
After years of inactivity there is a new version of Awesomplete available: 1.1.7 We should check, if we can update it in Joomla. @dgrammatiko what do you think? |
|
The 1.1.7 has solved this with: LeaVerou/awesomplete@3c7ee84 configure(this, {
minChars: 2,
maxItems: 10,
autoFirst: false,
data: _.DATA,
filter: _.FILTER_CONTAINS,
sort: o.sort === false ? false : _.SORT_BYLENGTH,
container: _.CONTAINER,
item: _.ITEM,
replace: _.REPLACE,
tabSelect: false,
listLabel: "Results List", // <-- this
statusNoResults: "No results found",
statusXResults: "{0} results found", // uses index placeholder {0}
statusTypeXChar: "Type {0} or more characters for results"
}, o);So this PR should just pass the |
|
This pull request has been automatically rebased to 5.2-dev. |
|
@JackKellyUK Can you fix the conflicts and also implemented the requested changes? |
|
Closing in favour of #44756 . @JackKellyUK Thank you for your contribution. |

Summary of Changes
Awesomplete is raising a Serious issue in axe for a missing title / aria-label attribute.
Added title attribute to results list.
There is an open issue about this, a fix looks to be implemented with the
listLabelproperty, but it is currently unreleased.Testing Instructions
Smart Search > Searchmenu item (Smart Search > Search Suggestionsglobal setting must be enabled)Actual result BEFORE applying this Pull Request
No title / aria-label attribute present on Awesomplete list
Expected result AFTER applying this Pull Request
Title attribute present on Awesomplete list
Link to documentations
Please select:
Documentation link for docs.joomla.org:
No documentation changes for docs.joomla.org needed
Pull Request link for manual.joomla.org:
No documentation changes for manual.joomla.org needed