-
Notifications
You must be signed in to change notification settings - Fork 350
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
demos(Card): added horizontal split and details demos #6193
Conversation
PF4 preview: https://patternfly-react-pr-6193.surge.sh |
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.
Looks good to me. @mattnolting can you also take a look? The only question I had was why this URL on the right is not linked:
It's that way in the core example, too. I wasn't sure if this was by intent or just an oversight.
Cluster API Address | ||
</DescriptionListTerm> | ||
<DescriptionListDescription> | ||
https://api2.devcluster.openshift.com |
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.
This feels a bit odd to see a link as plain text. Could we change this to a link, or change the description/descriptionListTerm to use less link-looking text?
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.
Yeah this seems like an oversight. I think we should link this text like the other card - @mcarrano do you agree?
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.
Yup. I agree. it looks odd. This is how the core implementation looks. @mnolting can you see @mcarrano's question above
#6193 (review)
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.
It looks like neither of the URLs are linked in the original design - https://marvelapp.com/prototype/eb14d81/screen/70405126
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.
Yes, Let's just make that a link for consistency.
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.
@mcoker Do you want to open a core issue for the update.
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.
Looks great! Just a few comments.
CardHorizontalSplitDemo = () => { | ||
return ( | ||
<Card id="card-demo-horizontal-split-example" isFlat> | ||
<Grid md={6} hasGutter> |
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.
<Grid md={6} hasGutter> | |
<Grid md={6}> |
<Grid md={6} hasGutter> | ||
<GridItem style={{minHeight: '200px', backgroundPosition: 'center', backgroundSize: 'cover', backgroundImage: 'url(/assets/images/pfbg_992@2x.jpg)' }}/> | ||
<GridItem> | ||
<CardTitle>Headline</CardTitle> |
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.
The <Card*>
elements should be wrapped in <Card>
. We're missing this on the core side, too - patternfly/patternfly#4310
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.
@mcoker I am confused about the structure. I assumed the <Card>
on line 273 was the wrapping element here.
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.
Ah hah! I missed that, ignore my comment 🤦♂️
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.
Looks good. Thanks @tlabaj !
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!
Your changes have been released in:
Thanks for your contribution! 🎉 |
What: Closes #6122 and closes #6121