Describe the bug
Pressing Tab to switch focus to the next item in the grid selects items in an order that is not left-to-right, top-to-bottom.
To Reproduce
Steps to reproduce the behavior:
Create a masonry grid.
Press Tab a few times and watch the focus jump around the page. The initial Tab press also selects the entire grid.
Expected behavior
Pressing Tab should navigate through the items left-to-right top-to-bottom. Additionally, tab should not select the grid as a whole (the grid has tabindex=0 set).
Desktop (please complete the following information):
OS: macOS
Browser: Chrome, but happens on all browsers
Version: 109
Additional context
The DOM elements of the grid items seem to be in an arbitrary order, which does not play nicely with tab navigation.
Appreciate your taking the time to file an issue. You're making poor assumptions here, many of which are covered in other issues. Unfortunately, I don't have time to seek them out for you.
Describe the bug Pressing Tab to switch focus to the next item in the grid selects items in an order that is not left-to-right, top-to-bottom.
To Reproduce Steps to reproduce the behavior:
Expected behavior Pressing Tab should navigate through the items left-to-right top-to-bottom. Additionally, tab should not select the grid as a whole (the grid has tabindex=0 set).
Desktop (please complete the following information):
Additional context The DOM elements of the grid items seem to be in an arbitrary order, which does not play nicely with tab navigation.