-
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
Move sidebar close buttons to left side #61514
Conversation
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Size Change: +61 B (0%) Total Size: 1.74 MB
ℹ️ View Unchanged
|
Marked as draft as this is exploratory. Thanks. |
I appreciate the effort, but I do think we should do more explorations. This introduces a non-standard implementation for close button placement, across the majority of web-based applications. It also results in some close icons placed on the left, while others are on the right—an inconsistency that adds cognitive weight for the user. I'd like to explore alternatives that results in a better experience for everyone. |
@jameskoster - I can do a PR that implements the panel header design you posted.
It's OK if the focus button doesn't have focus initially. It can be skipped over when focus is sent to it from opening the button. The issue is that the focus order doesn't match visual order when using the Tab key. |
I also think we should consider alternative explorations before committing to this. This simple change would impact how all users interact with the editor, so we should be confident this is the best solution before introducing such a change. |
Added before & after screenshots to the description. |
My understanding is that we are going to try this approach: #61837 so I'll close this PR for now. |
What?
Fixes accessibility issues where focus order must match visual order, and also not be between the tabs and tab panel.
Why?
Accessibility.
How?
Moves Close button to before the tabs/removes flex order.
Testing Instructions
Testing Instructions for Keyboard
Screenshots or screencast