News for hackers. Stuff that matters.
Re:Just Use a Button by bugsliker on Friday October 31, 2025 @03:16PM (#45775649)
I'm saying tabindex=0 is naturally sorted wrt other naturally focusable elements. That matches the behavior of the <button> you're trying to emulate. I don't know what tabindex>0 has to do with this.

See this fiddle https://jsfiddle.net/483uqjnp/

(again, I do not condone building your own <button>, just pointing this out)

There are no comments on this comment yet.