-
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
Swap position of the Pre-publish checks buttons. #65317
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: +1.08 kB (+0.06%) Total Size: 1.77 MB
ℹ️ View Unchanged
|
Seems good to me. Also aligns with the button order in modals, and in page headers (like data views) if/when secondary actions are added. |
@jameskoster thanks for your review. |
this.cancelButtonNode = createRef(); | ||
} | ||
|
||
componentDidMount() { |
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.
Unrelated: Haha, looks like these are very old components, some of the few that are still using the component class. Unrelated, but we should refactor this.
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.
Yeah I did notice that.
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.
Wow, I haven't seen a componentDidMount
in a while 😂
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.
45 occurrences of componentDidMount()
in the current codebase 😉
* Swap position of the Pre-publish checks buttons. * Adjust test. Co-authored-by: afercia <afercia@git.wordpress.org> Co-authored-by: youknowriad <youknowriad@git.wordpress.org> Co-authored-by: jameskoster <jameskoster@git.wordpress.org>
I just cherry-picked this PR to the wp/6.7 branch to get it included in the next release: 2d3a8bd |
I just cherry-picked this PR to the release/19.3 branch to get it included in the next release: 88836f0 |
* Swap position of the Pre-publish checks buttons. * Adjust test. Co-authored-by: afercia <afercia@git.wordpress.org> Co-authored-by: youknowriad <youknowriad@git.wordpress.org> Co-authored-by: jameskoster <jameskoster@git.wordpress.org>
Much appreciated. Thanks! |
thank youuuuuuuuuuuuuuu |
Fixes #65315
What?
Avoids users to unnecessarily move their mouse when publishng. This way, a two quick mouse clicks are way easier to perform in order to publish without having to move the mouse.
Why?
Forcing users to move their pointing device (mouse, trackpad, etc.) to be able to click the second Publish button in the Pre-publish checks panel isn't a great user experience.
How?
Testing Instructions
Testing Instructions for Keyboard
Screenshots or screencast
Before:
After:
Swapped buttons when scheduling and submitting for review: