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

Fork native variant of withViewportMatch HOC to use withSelect again #1668

Merged
merged 2 commits into from
Dec 10, 2019

Conversation

mkevins
Copy link
Contributor

@mkevins mkevins commented Dec 10, 2019

Description

This PR forks with-viewport-match.js to a native variant (with-viewport-match.native.js) to revert changes introduced in this PR: WordPress/gutenberg#18950 for mobile only.

Related gutenberg PR: WordPress/gutenberg#19027

How has this been tested?

The withViewportMatch HOC is used in Gallery to limit displayed columns to 2 in portrait mode. This has been tested by adding 3 or more images to a gallery block and ensuring that only 2 columns are displayed in portrait mode (up to 4 in landscape). Also, using the debugger, isNarrow flag is confirmed to be true for portrait.

Update release notes:

  • If there are user facing changes, I have added an item to RELEASE-NOTES.txt.

Copy link
Contributor

@pinarol pinarol left a comment

Choose a reason for hiding this comment

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

LGTM!

@mkevins mkevins merged commit e16b030 into release/1.19.0 Dec 10, 2019
@SergioEstevao SergioEstevao deleted the fix/fork-with-viewport-match branch April 17, 2020 09:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants