-
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
Site Editor: Tab order of editor canvas and resize handle #52602
Comments
To my understanding, the problem with the ResizableBox component and the re-resizable library is that it is meant for a different use case :) By default, re-resizable draws a rectangular box with 8 handles: 4 for the corners and 4 for the edges. Screenshot: To do so, re-resizable draws an overlay above the element that is resizable and in the DOM order the overlay comes after. It is possible to hide or disable the handles and keep just one or two of them but regardless they will always come after in the DOM order. I'm not sure there is a way to hack around the re-resizable library but anyways I'm not sure hacking it would be future-proof. I tend to think the ResizableBox component based on re-resizable is just not the right tool for our use case. Worth reminding that the DOM order problem occurs also in the Style Book where there is an additional problem:
Marking this issue as a bug because the mismatch between visual order and DOM order is a WCAG violation. |
Looking into this after some time. I'd think the best way to solve this issue would be:
Looking at
|
After #65637 it would be good to look again into this issue. |
It seems that bokuweb/re-resizable#827, which was submitted to the I can think of three approaches:
|
I’ll add that
Thanks for sharing the link, I hadn’t seen that and it would be handy. |
In #52443, it was raised that the tab order of the editor canvas and resize handle was unintuitive:
It would be nice if we could flip the tab order. However, it isn't very easy because the element order depends on the re-resizable library under the hood.
Also, in the general case, resize handles can be on any edge or corner. It's only in this specific case where the handle is only on the left edge. So I do see an argument to optimize for consistency in the general case (for example the one in Style Book with two handles), and have all handles come after the frame.
The text was updated successfully, but these errors were encountered: