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 permalink UI and make it responsive #9010

Merged
merged 8 commits into from
Aug 16, 2018
Merged

Conversation

jasmussen
Copy link
Contributor

This PR fixes three things:

  1. It fixes an issue where the focus style of the editable slug in the permalink editor did not have the new focus styles.
  2. It fixes a regression with a horizontal scrollbar on the middle breakpoint.
  3. It fixes the permalink editor so it scales to mobile.

GIFs:

focus

responsive

To test, please verify that permalink editing works on all breakpoints. Please also test the demo content to see that the hover styles of various blocks at various breakpoints did not regress as part of the horizontal scrollbar fix.

This addresses feedback in #6480 (comment).

@jasmussen jasmussen added the [Type] Bug An existing feature does not function as intended label Aug 15, 2018
@jasmussen jasmussen added this to the 3.6 milestone Aug 15, 2018
@jasmussen jasmussen self-assigned this Aug 15, 2018
@jasmussen jasmussen requested review from afercia and a team August 15, 2018 09:30
Copy link
Member

@tofumatt tofumatt left a comment

Choose a reason for hiding this comment

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

Tested the demo content at 320px width (iPhone SE) and it all worked. There were horizontal scrollbars under that width but I think that's fine… 320px is a reasonable minimum width expectation.

I have one question/thought about one comment, otherwise looks good! 👍

left: 0;
right: 0;

// Stack with block borders beyond mobile.
Copy link
Member

Choose a reason for hiding this comment

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

I'm not quite sure what this comment means, and it references code aimed at a mobile viewport but talks about what happens outside the mobile viewport. I get that it means mobile behaves one way and others differently, but I think this comment could be clarified 😄

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Solid point, will rearrange and clarify that a bit.

THANKs for all the fixes and review!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Addressed your comment in f5c3696

@@ -49,7 +49,7 @@ class PostPermalinkEditor extends Component {
className="editor-post-permalink-editor"
onSubmit={ this.onSavePermalink }
>
<span>
<span className="editor-post-permalink-editor__container">
Copy link
Member

Choose a reason for hiding this comment

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

It's close, but this is not quite following the naming standards. Specifically, the part preceding the __ isn't concerned at all with the file name, only the top-level folder and the immediate parent folder. It should be editor-post-permalink__editor-container.

Copy link
Member

Choose a reason for hiding this comment

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

Looking again at those standards, we need to update them to be less... editor-specific.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Addressed feedback for now, perhaps we can revisit the editor naming separately?

@jasmussen
Copy link
Contributor Author

Not sure why the tests fail here.

min-width: 20%;
margin: 0 5px;
.editor-post-permalink input[type="text"].editor-post-permalink-editor__edit {
// Input fields are created with inherent widths.
Copy link
Member

Choose a reason for hiding this comment

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

This was the cause of the failing test; fixing it now.

@jasmussen
Copy link
Contributor Author

Yaay thank you!

@jasmussen jasmussen merged commit 0451142 into master Aug 16, 2018
@jasmussen jasmussen deleted the polish/permalink-ui branch August 16, 2018 09:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Type] Bug An existing feature does not function as intended
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants