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 guided tour popup margins #10295

Merged
merged 4 commits into from
Oct 8, 2018
Merged

Fix guided tour popup margins #10295

merged 4 commits into from
Oct 8, 2018

Conversation

nielslange
Copy link
Contributor

@nielslange nielslange commented Oct 2, 2018

Description

Removed negative left and right margins from guided tour popup when scrolling on mobile devices.

How has this been tested?

Fix had been tested using iPhone 7 Plus with iOS 11.4.1 in both English (LTR) and Hebrew (RTL).

Screenshots

Before

After

Types of changes

Removed two negative margins (LTR & RTL) within gutenberg/packages/components/src/popover/style.scss

Checklist:

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

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.

Thanks for the patch!

I think this makes sense and looks good, but I'm a bit confused about the screenshots you've submitted. It looks like there are "before" and "after" screenshots, but I can't tell which ones are which so it's hard to tell what the change is here.

Could you edit your PR comment to clarify the before/after screenshots and have a look at the comments I made? After that this should be good to merge 😄

@@ -2415,6 +2415,7 @@
"version": "file:packages/rich-text",
"requires": {
"@babel/runtime": "^7.0.0",
"@wordpress/escape-html": "file:packages/escape-html",
Copy link
Member

Choose a reason for hiding this comment

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

Hmmm, this seems unrelated, any idea why this is here?

(If you aren't sure it's probably best to remove. Maybe we forgot to update the package lock, but that can be a separate patch 🙂)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not sure how this ended up here, but I'll remove it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Just removed it and added commit 25ce95d.

Copy link
Member

Choose a reason for hiding this comment

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

It wasn't your fault! (See: #10304) 😄

}

.components-popover.edit-post-more-menu__content:not(.is-mobile):not(.is-middle).is-right & {
/*!rtl:ignore*/
Copy link
Member

Choose a reason for hiding this comment

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

Could you add some comments explaining why these should be ignored? Maybe even just a link to this PR, just so future developers will understand.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

*!rtl:ignore*/ came from the CSS statement before, which I copied and adjusted.

@tofumatt tofumatt removed the request for review from karmatosed October 3, 2018 17:14
@nielslange
Copy link
Contributor Author

@tofumatt Thanks for your feedback. I made the screenshots smaller and added title tags to it, thus, when you hover over the images, you'll see their titles and will reply to your other notes directly in the related sections.

@nielslange
Copy link
Contributor Author

@tofumatt Besides the screenshots you've requested, is there anything else I should change in order to get this PR merged? 😉

@tofumatt
Copy link
Member

tofumatt commented Oct 8, 2018

Nope, sorry, just didn't see this was ready for another review; looking now!

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.

Those are some epic selectors, but it was like that already, so 🤷‍♂️

Thanks for the patch! Once Travis passes I'll get things merged.

@tofumatt tofumatt added this to the 4.0 milestone Oct 8, 2018
@tofumatt tofumatt merged commit f1d4fcb into WordPress:master Oct 8, 2018
@nielslange
Copy link
Contributor Author

Great to see this PR got merged, @tofumatt! It's my first contribution to Gutenberg and most likely not the last. 😀

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