Skip to content
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

Fix off center post-publish button #17726

Merged
merged 10 commits into from
Nov 14, 2019
Merged

Conversation

richtabor
Copy link
Member

Description

Fixes #17691, by centering the Post Publish button and applying a bit of padding to keep the close button off the edge of the panel header.

How has this been tested?

Tested in supported browsers.

Screenshots

ScreenFlow

Types of changes

Bug fix

Checklist:

  • My code is tested.
  • My code follows the WordPress code style.
  • My code follows the accessibility standards.
  • My code has proper inline documentation.

@github-actions github-actions bot added the First-time Contributor Pull request opened by a first-time contributor to Gutenberg repository label Oct 2, 2019
@richtabor richtabor added the [Type] Bug An existing feature does not function as intended label Oct 2, 2019
Copy link
Contributor

@enriquesanchez enriquesanchez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left some comments on packages/edit-post/src/components/layout/style.scss

packages/edit-post/src/components/layout/style.scss Outdated Show resolved Hide resolved
… so should work better with translations. Less code. More button.
@mapk
Copy link
Contributor

mapk commented Oct 16, 2019

I've removed the spacer, adjusted the height of the button and centered it. While it's not perfect, it should work nicely with translations. Check it.

publish

@enriquesanchez
Copy link
Contributor

Just tested this and looks 👍

Copy link
Contributor

@mapk mapk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we're good on this now. Thanks for testing @enriquesanchez!

@richtabor
Copy link
Member Author

Yup, looks great!

@mapk
Copy link
Contributor

mapk commented Oct 23, 2019

@richtabor I'm not sure why we're having failed tests. Can you try rebasing?

@richtabor
Copy link
Member Author

@richtabor I'm not sure why we're having failed tests. Can you try rebasing?

I did, though it's still failing - I'm not entirely sure why?

@mmtr
Copy link
Contributor

mmtr commented Nov 4, 2019

@richtabor I'm not sure why we're having failed tests. Can you try rebasing?

I did, though it's still failing - I'm not entirely sure why?

They seem to be unrelated to changes on this PR.

Failing E2E:

 Embedding content › should switch to the WordPress block correctly
    expect(jest.fn()).not.toHaveWarned(expected)
    Expected mock function not to be called but it was called wit

Mobile unit tests:

Cannot find module 'Platform' from 'react-native-implementation.js'
    However, Jest was able to find:
    	'./platform.android.js'
    	'./platform.ios.js'
    	'./platform.js'

I see this PR was merged recently with the same errors: #18247 So, maybe builds are not currently stable? cc @gziolo

You can also try rebasing instead of merging, although I don't think that'd have any effect.

@aduth
Copy link
Member

aduth commented Nov 6, 2019

I think there's some intermittent failures in the E2E test with the "SameSite" cookie warning. The mobile tests are allowed to fail, so they shouldn't be considered as a blocker.

I restarted the build to try to clear up the failure.

@richtabor
Copy link
Member Author

Here's a gif with the latest commit, with a slight tweak to make the Publish button centered across the entire panel header:

button

@mapk
Copy link
Contributor

mapk commented Nov 8, 2019

Looks great, @richtabor! Let's get this merged!

@karmatosed karmatosed merged commit 1490fd5 into master Nov 14, 2019
@karmatosed karmatosed deleted the fix/17691-publish-button-off-center branch November 14, 2019 11:33
@youknowriad youknowriad added this to the Gutenberg 7.0 milestone Nov 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
First-time Contributor Pull request opened by a first-time contributor to Gutenberg repository [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Publish button is off-center
7 participants