-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Writing flow: fix vertical arrow nav in table (and generally grid) #22105
Conversation
Size Change: +51 B (0%) Total Size: 821 kB
ℹ️ View Unchanged
|
@@ -80,25 +80,7 @@ describe( 'Writing Flow', () => { | |||
activeBlockName = await getActiveBlockName(); | |||
expect( activeBlockName ).toBe( 'core/column' ); | |||
await page.keyboard.press( 'ArrowUp' ); | |||
activeBlockName = await getActiveBlockName(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is expected. Arrow up shouldn't go through all the previous columns.
@talldan May be of interest to you since you've also looked at navigation for grids. Hopefully this is a good general solution. We can tweak it if we have more cases. |
Hey @ellatrix That's pretty cool, much simpler than the solution I had! I did some testing and mostly it seems to work well, though I noticed that sometimes when moving in to the last cell in a table in Firefox, I'm unable to move back out again using the left or up arrow keys. |
Description
Fixes #14675.
When using the up and down arrow keys, and there are tabbable elements placed in a row (e.g. table), the focus visually moves horizontally, which feels wrong.
The solution is to exclude tabbable elements that are in the same row.
How has this been tested?
Screenshots
Types of changes
Checklist: