FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix(Grid): Update grid layout to support new 2xl breakpoint by jessiehuff · Pull Request #2305 · patternfly/patternfly-react · GitHub

fix(Grid): Update grid layout to support new 2xl breakpoint - #2305

Merged
dlabaj merged 6 commits into
patternfly:masterfrom
jessiehuff:fix/gridBreakpoints
Jun 27, 2019
Merged

fix(Grid): Update grid layout to support new 2xl breakpoint#2305
dlabaj merged 6 commits into
patternfly:masterfrom
jessiehuff:fix/gridBreakpoints

Conversation

Copy link
Copy Markdown
Contributor

Fixes #2199

Update the grid layout to support the 2xl breakpoint added here - patternfly/patternfly#1880

Copy link
Copy Markdown
Collaborator

PatternFly-React preview: https://patternfly-react-pr-2305.surge.sh

/** the number of columns all grid items should span on a xLarge device */
xl: gridItemSpanValueShape,
/** the number of columns all grid items should span on a 2xLarge device */
xl2: gridItemSpanValueShape,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

should we call it 2xl or is there a reason it's xl2 here?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

I had to name it xl2 to meet JSX attribute name requirements. It won't allow a prop to start with a number. :(

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Maybe '2xl': gridItemSpanValueShape will make JSX happy?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

That works for defining the prop, but it doesn't work when actually creating a <GridItem 2xl={2}>

mcoker left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

lgtm! thanks!

tlabaj left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

LGTM

dlabaj merged commit 2025c1c into patternfly:master Jun 27, 2019
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

Update grid layout to support new 2xl breakpoint

6 participants


Back | FazBrowse Home | New Git URL