How to make element not focusable with tab navigation
want to use button element but Its imperative that you cant select it with tab
6 Replies
Why is it imperative that you can't select it via tab? That's super not accessible.
its electron window frame
No idea what that is, but you want to set a negative
tabindex
on the element:
A negative value (the exact negative value doesn't actually matter, usually tabindex="-1"
) means that the element is not reachable via sequential keyboard navigation.
https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex![](https://utfs.io/f/5c2ece8a-7959-43bc-a3b5-c6ae1bb27419-1nq2cb.png)
Thanks!
👍