Click here to Skip to main content
15,887,326 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
I'm trying since yesterday to make it work, but i can't.
The problem is: I have a list of items that you can tab and select one of them with ENTER key, but the ScreenReader doesn't read anything when you press ENTER key to the selected item.

This is the piece of code that i'm trying to fix

<div class="SelectedNames"> <ol> <li ng-repeat="name in names" ng-class"isSingleNameSelected(name) == true ? 'selected' : no-selected'" ng-click="verifySelected(name)"> <a href="%" class="nameTitle> {{ item.name }}</a>


NOTE: you can only modify the part, don't need to touch the rest

I don't mind if you can show me another way without aria to do this. I only need it to works when you press enter to an item in the listitem
I will apreciate if someone can discover how to fix it, because i can't. Thank you

What I have tried:

I tried many things, aria-selected="false" (which only works with buttons, but i'm trying to do this with <a>, so it doesn't work), javascript, aria-atomic="true" but i can't make it work with this, etc....
Posted
Updated 30-Jul-23 19:54pm
v4

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900