I have a slider built with Glide.js that has 6 slides, all with links. It needs to be tabbable for our keyboard users, but so far it's not working.
If the user tabs through the page, it stops on every photo and then jumps to the first bullet below.
Then if the user clicks the first bullet it does nothing. as the user progresses through the bullets, the images slide and eventually go right off the screen into empty space. The best the user can then do is tab back to the first bullet which only brings them as far back as image 3. Is this a bug or is there something that can be done? I feel like I've tried everything.
Here's my code on code pen:
https://codepen.io/cristenrh/full/ExpwRNz
or an example on my website:
https://hewettcentral.com/cristen/carousel.html
I've tried using different variables for bullet one, like "<<". I've tried using glide.update() once the user gets to the first bullet and I've even tried glide.mount(). Neither work. The closest I've come is to start using negative numbers in the bullets, but that really breaks it further.
` for the slider it has a CSS style of `transform:translate3d(100px, 0px, 0px)`. If you drag the slider with a mouse, you'll see the first value in that translate change, such as `transform:translate3d(-404px, 0px, 0px)`. (Your numbers might be diff). As long as the `translate3d` changes, the bullets correctly scroll the cake image into view. However, if you TAB through the cake pics, causing the slider to scroll, you'll see the `translate3d` does **not** change. That's what's causing the problem. Glide has a bug that it's not updating the viewport upon keyboard events.
– slugolicious Jan 18 '23 at 06:00