-
Notifications
You must be signed in to change notification settings - Fork 352
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(CatalogTileView): Support tiles without categories. #977
fix(CatalogTileView): Support tiles without categories. #977
Conversation
PatternFly-React preview: https://977-pr-patternfly-react-patternfly.surge.sh |
Pull Request Test Coverage Report for Build 3411
💛 - Coveralls |
|
||
if (item.approved) { | ||
badges.push( | ||
<CatalogTile.Badge key="certified" title="USDA Approved" id="approved"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit but i would order these the same as the certified badge - key/id/title
also is 'USDA' intended? would've thought simply Approved would be better
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, extra credit if update CatalogTileView.test.js
for this new property.
3f0ebf9
2912dd2
to
3f0ebf9
Compare
Went for the extra-credit. @dtaylor113 @mfrances17 please take another look. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
110% love it! -thanks
Currently if tiles are added to the tile view and are not in a category they are displayed in a single tile per row rather than wrapped as they are when they are in a category.
This PR allows the caller to specify that categories are not used and will wrap the child tiles.