-
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
Post Editor: Apply busy status to the publish button in progress and unify button width #48444
Conversation
Size Change: +5 B (0%) Total Size: 1.33 MB
ℹ️ View Unchanged
|
Flaky tests detected in ff9fb65. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/4270084069
|
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.
Before:
After:
This is a really nice improvement, thank you.
One little issue you will note in both of the above GIFs is that the disabled active state makes the button slightly wider, for some reason. As noted, this appears to be an existing issue, so fine to ignore. But if you can find out what makes it grow larger in its active state, and fix it so the width doesn't change, that would be bonus points! 🙏
ff9fb65
to
56ccff3
Compare
56ccff3
to
c035759
Compare
Thanks for the review, @jasmussen!
This makes sense. This is due to the fact that the width of the buttons are not fixed, for example, the difference will be more pronounced if the length of the text on each button differs from language to language: However, since the buttons are of equal width in the site editor, the same should be true for the submission editor: I updated my PR and now it works like this in the post editor: |
Beautiful 👏 |
What?
This PR applies a busy status to the Publish button when the publication process is in progress.
Why?
If the button text is in progress, I think it should indicate busy status.
Screenshots or screencast
Before
After
When the status is as follows, the status of the button remains the same as before.
Updating draft post
Swithing to draft post
Updating published post