| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
… meet JSX attribute name requirements
|
PatternFly-React preview: https://patternfly-react-pr-2305.surge.sh |
Sorry, something went wrong.
| /** 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, |
There was a problem hiding this comment.
should we call it 2xl or is there a reason it's xl2 here?
Sorry, something went wrong.
There was a problem hiding this comment.
I had to name it xl2 to meet JSX attribute name requirements. It won't allow a prop to start with a number. :(
Sorry, something went wrong.
There was a problem hiding this comment.
Maybe '2xl': gridItemSpanValueShape will make JSX happy?
Sorry, something went wrong.
There was a problem hiding this comment.
That works for defining the prop, but it doesn't work when actually creating a <GridItem 2xl={2}>
Sorry, something went wrong.
There was a problem hiding this comment.
lgtm! thanks!
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Fixes #2199
Update the grid layout to support the 2xl breakpoint added here - patternfly/patternfly#1880