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

Polish block UI, inspector, add contributors, fix quote styles #2001

Merged
merged 13 commits into from
Jul 27, 2017

Conversation

jasmussen
Copy link
Contributor

This is sort of a kitchen sink PR to fix a lot of lingering little issues.

Normalization

The biggest issues fixed here are the normalization of block paddings and margins between the title, the empty placeholder, and the below the placeholder elements. These now share basically the same styles, which means they behave identically at responsive breakpoints (fixing issues), but the normalization also makes the code easier to maintain.

Steps to test: View the editor at multiple responsive breakpoints (resize the window), and verify that

  • new post writing prompt has the same width, hover and non hover, as the title and inserter
  • insert a text block, then verify the inserter and title has the same width and sizes

Other

Mover and cog/trash elements now have the same dimensions, and fit nicely within the smallest block (a single empty paragraph). This means the mover up/down arrows are spaced a little farther apart, but it gives some nice symmetry. Verify it looks good ;)

Quote styles were fixed, there was a CSS bleed regression from a recent tinymce update. To test, verify lineheights and margins for anything that uses the Editable component didn't regress from this fix.

The inspector was polished a bit to remove double borders, tweak the close button padding, and add a white background when no block is selected.

The contributors document was updated with recent contributors. I know it's a bummer that this isn't automated, but it means we can give credit to contributors who test, mock up and other things.

@jasmussen jasmussen self-assigned this Jul 25, 2017
@jasmussen jasmussen requested a review from mtias July 25, 2017 12:13
@aduth aduth self-requested a review July 25, 2017 12:57
@mtias
Copy link
Member

mtias commented Jul 27, 2017

On full-width blocks there's a slight overlap with the border:

image

Copy link
Member

@mtias mtias left a comment

Choose a reason for hiding this comment

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

Outside of that tiny detail, looks good to me.

@jasmussen
Copy link
Contributor Author

Addressed the feedback, and also surfaced the mover in fullwide. Because why not.

screen shot 2017-07-27 at 14 22 08

Merging when the checks pass.

This will be an ongoing task. Anyone should feel free to add.
This makes it the same as that of the block code, which fixes issues, and makes it more maintainable.
This makes it the same as the block code, making it easier to maintain and fixing issues.
Some pixels here, a few there. A background for when no block is selected. All good.
This makes the mover (left) and cog/trash button (right) have the same margins and paddings, simplifying the appearance a bit.
Like with the other prompts and titles, this rewrites the responsive code so it is easier to maintain (same as elsewhere), and fixes issues.
@jasmussen jasmussen force-pushed the polish/ui-docs-various branch from b1192b1 to d34aff1 Compare July 27, 2017 12:28
@jasmussen
Copy link
Contributor Author

Rebased. Will wait again.

@mtias
Copy link
Member

mtias commented Jul 27, 2017

Addressed the feedback, and also surfaced the mover in fullwide. Because why not.

Yes, good call.

@mtias
Copy link
Member

mtias commented Jul 27, 2017

On some breakpoints the arrows overlap:

image

Also it removes the mobile toolbar for wide blocks :)

image

@jasmussen
Copy link
Contributor Author

Ack, need to revisit that. Okay.

Fix issue with movers overlapping, and with mobile toolbar being broken on wide.
I couldn't think of any side-effects to this.
Only showed when settings was closed.
@mtias
Copy link
Member

mtias commented Jul 27, 2017

Looks good to me now.

@jasmussen
Copy link
Contributor Author

Thanks. Merging. Travis needs work anyway.

@jasmussen jasmussen merged commit 5321e8b into master Jul 27, 2017
@jasmussen jasmussen deleted the polish/ui-docs-various branch July 27, 2017 13:27
@jasmussen
Copy link
Contributor Author

Okay maybe I should have waited for the tests to finish, my apologies. I was under the impression travis was totally broken, when in fact it's probably only partially broken.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants