-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[data grid] When deleting a row on the Data Grid using keyboard, the focus after deleting should go to the next line #14993
Comments
@abdermaiza, could you please confirm the steps to reproduce this? Does it indeed involve using the action button? |
I confirm, we just need to move the focus on the next line, after deleting the line. |
This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue. |
Hello, Doesn't seem ok, on this URL: The focus is on the edit button instead of the fist cell (Name cell)... |
@abdermaiza Hmm, do you expect the focus to move to the first cell? |
When we delete one line with the delete button, focus should be moved on the first cell of the next line. |
I checked the ARIA guide for the Grid pattern, but I couldn't find any info regarding focus after deleting a row. There's only a general keyboard navigation block which doesn't clarify it much: However, I found this example they provide that uses the same Grid pattern: https://www.w3.org/WAI/ARIA/apg/patterns/grid/examples/layout-grids/#ex2_label. When the row is deleted, the focus moves to the equivalent cell in the next row: Screen.Recording.2024-10-23.at.14.55.51.movThis makes me believe that keeping the focus in the same column is technically correct and should be the default behavior. |
I agree but this is not what is done in the example here: Because I see that the focus is moved in the edit button of the deleted row... :( |
Well, the focus moves to the cell in the same column, and it automatically focuses the first button in the cell 🙂 |
Ok, so that's fine, thanks. |
Summary
When we delete one line with the delete button, focus should be moved on the first cell of the next line
Reported by iValua accessibility report.
Steps to reproduce
Caveats
They haven't provided a reproduction case, so I'm guessing the problem is when using action buttons, which is not a direct responsibility of the Data Grid, and if that's the case, how could we solve it?
Search keywords:
The text was updated successfully, but these errors were encountered: