[Inserter]: Keyboard navigation in inserter panels when panel content overflows. #45489
Labels
[Focus] Accessibility (a11y)
Changes that impact accessibility and need corresponding review (e.g. markup changes).
[Type] Bug
An existing feature does not function as intended
In a different PR that moves the search input of the main inserter inside each tab panel content there were comments about a11y issues for navigating through the inserter. You can read more on this thread.
After trying to figure out what the problem is, it seems there is an existing issue on trunk, that was just made more visible through my PR. After the changes made in this PR in order to implement the new design for the patterns tab:
we can't enter in the blocks tab panel by pressing
Tab
. Noting that for me at least this doesn't happen in all browsers.In the below video I'm pressing
Tab
until the tab button (Blocks) is focused and the nextTab
focuses the scrollable area and not the first block in the list. When the scrollable area is focused, you can press the arrow keys to scroll the tab panel content. In the same video inPatterns
tab, we can enter the tab panels contents, because it doesn't overflow.Screen.Recording.2022-11-02.at.3.54.42.PM.mov
In this video I have reduced the number in blocks tab and increased the number of patterns panel content to demonstrate the same effect in the different tabs.
Screen.Recording.2022-11-02.at.3.57.26.PM.mov
From my understanding until now, this is how it should work(ex article), that means if the content overflows focus the scrollable container. I'm not sure what is the best practice for the navigation in this issue and what to do.
Sorry for not being able to describe the issue very well, but there are lots of unknowns to me.. Please ask anything to try to clarify.
--cc @alexstine @youknowriad @ciampo
The text was updated successfully, but these errors were encountered: