| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
PatternFly-React preview: https://patternfly-react-pr-2443.surge.sh |
Sorry, something went wrong.
There was a problem hiding this comment.
We are missing demo and integration test here..
Sorry, something went wrong.
| test(`${size} Title`, () => { | ||
| const view = shallow( | ||
| <Title size={size} headingLevel={TitleLevel.h1}> | ||
| <Title size={size as 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl'} headingLevel={TitleLevel.h1}> |
There was a problem hiding this comment.
does the Title.h1 work here? Or do we have to use the string?
Sorry, something went wrong.
There was a problem hiding this comment.
Yes, it should still work. :)
Sorry, something went wrong.
There was a problem hiding this comment.
Okay, butwhy are we changing this as part of the Grid conversion?
Sorry, something went wrong.
There was a problem hiding this comment.
I was running into some errors with the tests, and this was my workaround at the time. I think I found a way that we can keep the previous code.
Sorry, something went wrong.
| md: 'Md', | ||
| lg: 'Lg', | ||
| xl: 'Xl', | ||
| xl2: '_2xl' |
There was a problem hiding this comment.
Why did we change the definition of the const here?
Sorry, something went wrong.
There was a problem hiding this comment.
This is to build the prop names from react-styles correctly.
Sorry, something went wrong.
| test(`${size} Title`, () => { | ||
| const view = shallow( | ||
| <Title size={size} headingLevel={TitleLevel.h1}> | ||
| <Title size={size as 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl'} headingLevel={TitleLevel.h1}> |
There was a problem hiding this comment.
Okay, butwhy are we changing this as part of the Grid conversion?
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM
Sorry, something went wrong.
There was a problem hiding this comment.
Nice refactor.
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Fixes #2447