Skip to content
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

Keyboard navigation #41

Open
dragontheory opened this issue Aug 30, 2022 · 2 comments
Open

Keyboard navigation #41

dragontheory opened this issue Aug 30, 2022 · 2 comments

Comments

@dragontheory
Copy link
Owner

No description provided.

@dragontheory
Copy link
Owner Author

dragontheory commented Sep 6, 2022

@bob2517
Now THIS is Keyboard Kung Fu!
https://activecss.org/manual/focus-on-next-cycle.html

So, doing the whole 508 compliance thing and getting my tabindexes in order (so to speak).

(At work, not on this version) I now have list-item clicks triggering on keyupEnter (as well as normal clicks) in the left panel. Awesome!

Now that there are search results in the center panel, I don't want to have to tab all the way down the rest of this list to get over to the center results panel. I want to skip directly to the center panel results list.

This is what I have so far...

app-panel:nth-of-type(2) panel-list list-item:keyupArrowRight { < --- right arrow trigger on any of the <list-item>s
  focus-on-next-cycle: app-panel:nth-of-type(3) list-item; < --- skip to first <list-item> in the center panel 
}

But it's not working! Does it not see that it is a list? Could it be that they are custom elements?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🏗 In progress
Development

No branches or pull requests

1 participant