components
components copied to clipboard
docs(cdk-experimental/listbox): add docs & examples
Deployed dev-app to: https://ng-comp-dev--pr-25317-12d13d41740a198e4dbe0775a21877e3-s5kwevwm.web.app
I embedded all the examples I added in the dev-app, you can check them out here: https://ng-comp-dev--pr-25317-2998a6aea0f4c5d81c00616767c9e8e1-rzze2wbv.web.app/cdk-experimental-listbox
@zarend
checkmark
ok, its on a ::before
element, so aria-hidden
isn't possible, but I switched it to a background image, which hopefully works
focus/selected
are you saying that the sceenreader is reading "Syrah" as selected, or that it looks selected? The background color was supposed to indicate focused-ness but I was applying it based on the active class which remains if the entire listbox is defocused. I've switched it to target :focus
so hopefully it makes more sense now
home/end
are you saying those keys don't work for you? they seem to be working for me
@zarend
checkmark
ok, its on a
::before
element, soaria-hidden
isn't possible, but I switched it to a background image, which hopefully worksfocus/selected
are you saying that the sceenreader is reading "Syrah" as selected, or that it looks selected? The background color was supposed to indicate focused-ness but I was applying it based on the active class which remains if the entire listbox is defocused. I've switched it to target
:focus
so hopefully it makes more sense nowhome/end
are you saying those keys don't work for you? they seem to be working for me
Home/End are not working correctly when I have VoiceOver turned on. This only aplys to the examples "Listbox with Value Binding", "Listbox with compareWith Function", "Listbox with Reactive Forms", "Listbox with Forms Validation", "Listbox with Disabled Options", "Horizontal Listbox", "Listbox with Custom Typeahead", and "Listbox with Custom Keyboard Navigation Options". However, it works fine when voiceover is turned off.
Yes voiceover is reading Syrah as selected when I navigate to it via the down arrow. When I navigate via screen reader navigation (cmd + option + down), Voice Over reads Syrah, but not as selected.
https://user-images.githubusercontent.com/7720245/181395301-a1d09ff0-828c-4da1-9692-5f2724f74e83.mov
- Tab to listbox
- press End
- (last item in listbox is activated but screen reader focus seems to move to a button at the top of the page).
Looks like the listbox focuses the correct item when I press End with VoiceOver enabled, but the screen reader's navigation state gets in a bad state.
@zarend I definitely want to look into the strange a11y behavior you're seeing, but I'll do it in a followup PR
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.