[nathanhammond]@marcysutton: I'm wondering if it's a race condition on populating the accessibility tree/buffer and can be hacked around with delays or if there are more fundamental issues.
[nathanhammond]@marcysutton: So far I've tried 5s delays to setting focus to no avail, next attempt is going to be delaying insertion after removal. (Lifecycle being build fragment, remove existing, insert new, set focus.)
[gerbenvandijk] Morning all! (forgive my noob question) but I'd like to make my entire website keyboard navigatable. been playing around with tabindex etc. but it doesnt seem to give me a lot of control about the order of tabbing through; and when I research it it seems like a lot of people are using javascript for this purpose. I am wondering; is that a valid technique? e.g. aren't a lot of people who actually use their keyboard to navigate the internet disabling JS? And if so, are there any go-to js libs for noobs like me to get used to it before rolling sth custom?
So if you want your website to be keyboard accessible, you should really take a step back and look at your underlying HTML to make sure you're using the correct elements.
[scottohara] Someone using a keyboard to navigate a website does not immediately mean they have JS turned off. But, you really don't need to be using JS or tabindexes to make your site keyboard accessible, unless you've built custom components that don't natively support keyboard focus
[gerbenvandijk] Thanks! Yea my HTML is fine by itself; all the elements that require interaction are accessible. Sometimes I'm running into scenario's where I'd like to change the order of the keyboard navigation; as some of the more complex resonsive navigation solutions that I use require a certain order in the HTML structure
[gerbenvandijk] A use case: i'd have a hamburger menu on smaller screens, it is possible that people who have an old desktop with low res screen see that. then I don't want to be tabbing through the content when the menu is open
[gerbenvandijk] Atm I am just setting z-index: -1 on the content when opening the menu
[gerbenvandijk] but I was wondering if there is a js lib that abstracts this kind of thing a bit more
[gerbenvandijk] without me having to explicitely set it on every piece of js that might require sth like this
[gerbenvandijk] i've seen things like .tabbable classes on elements for instance