-
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
Align publish button #19175
Comments
What is the reason for the center alignment? Feels like a one-off? It probably should be aligned left. Edit: The only reason I can think of is that when it is center aligned, it is similar in position to the original publish button so you don't have to move the cursor or your finger much. |
If we wanna get fancy with it, we could add a transition to the button so it appears to grow in size when the publish sidebar appears. |
I actually prefer it aligned left as stops us having the close and publish right next to each other. Beside each other, they feel like a trap we are laying down. We might be able to do something by swapping the preview and publish. |
Yeah. That's what I saw. Worth testing as a PR. |
On mobile, it seems to be more logical for the next action (publish) to be on the right. The cancel (or maybe it should be a back arrow?) would logically be on the left. (This would be reversed with rtl languages.) |
That thought crossed my mind as well. A media query to change the close button position and button position on mobile could work. The downside is the close button would be in a different spot just for this part of the flow. I wonder if the button should be here: Just some things to consider. |
In the vein of @shaunandrews' comment, here's an idea of how that might look. |
@mapk that mock covers the close though, I don't think < works as the action here. I actually don't think changing close to be < just in this case works as it's a pattern we use throughout so far. If we change it in other places it could change here of course. |
@karmatosed yea, it doesn't "cover" the close However, I'm completely open to other ideas and was just sharing some visuals. Because I agree that having the "Publish" button right next to the |
Moving back to design feedback as not sure we have a clear way here yet (we are close though). |
just FYI, the publish button was recently updated to be center aligned in #17726 |
Taking Shaun's idea one step beyond — and noting that this means updating all the panels (pre, post) as it changes the This would have an extra benefit to make the top area work from zero to three buttons, and have also an explicit label for close. It would also mark the panel as clearly distinct from the other kind of panel (which uses the ×), supporting the perceptual difference between the two. |
Having a Publish and Cancel button would make it a lot cleaner, visually better and create better clarity then what exists today. |
I think @folletto's exploration is much clearer to what we have now. We should definitively try this. |
It looks like we have a decision on the way forward, so let's wrap up this feedback round and get a needs-dev label on this. Thanks everyone. |
I'd love to help on this one. I started to make some tests and the only thing I found (If I understood correctly the way it should be implemented) is that once we have the two buttons one beside the other:
I found this to be the only thing that could be misleading. |
Hey @juanfra Thanks for getting involved! Going through the existing process:
Clicking Publish brings user to step 2. --
Clicking the X = Brings user back to default 1. --
Clicking the X = Brings user to the next screen.
The new process:
Clicking Publish brings user to step 2. -- Clicking the Cancel button = Brings user back to default 1. -- Clicking the Close buttons = Brings user to the next screen. --
|
Updating the post publish panel buttons to match the designs proposed on WordPress#19175
Thanks so much for the clarification, @paaljoachim! :) I just submitted a PR with the proposed changes. |
I added an animated gif of what the new Publish button flow looks like. |
* Update post publish panel block Updating the post publish panel buttons to match the designs proposed on #19175
#22390 has been merged; closing. |
Currently, the publish button floats in the middle of the screen :
The text was updated successfully, but these errors were encountered: