-
Notifications
You must be signed in to change notification settings - Fork 4.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
Accessing image block's crop tools with keyboard results in focus loss #24676
Comments
@talldan Possible ways to fix this:-
I would appreciate more feedbacks on this. |
Thanks for pointing out this issue! I think the focus loss isn't the only problem here. As mentioned in #24021, replacing parts of the toolbar "on the fly" also breaks the toolbar expected behavior, specifically:
I didn't look in depth at the code but I think both features rely on the which buttons (and their number) are initially rendered within the toolbar. Replacing part of those buttons with another UI breaks the toolbar implementation itself. To test: try to "manually" re-focus the toolbar and at that point various weird behavior happen:
Will report the above in a separate issue. Besides the general usability and accessibility concerns mentioned in #24021 I'd tend to think this design which replaces part of the buttons within the toolbar isn't ideal and should be reconsidered. I'll propose to discuss this issue, #24021, and the proposed design in the next weekly accessibility meeting. |
Describe the bug
If a user tries to access the image block's crop tools using only a keyboard, focus is lost making it hard/impossible to get to the tools.
To reproduce
Steps to reproduce the behavior:
Expected behavior
When selecting 'Crop' focus is moved to the nearest place (probably the 'Zoom' button, but open to feedback from the accessibility team on this).
Editor version (please complete the following information):
The text was updated successfully, but these errors were encountered: