Skip to content
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

Merged
merged 3 commits into from
Aug 20, 2021

Conversation

tlabaj
Copy link
Contributor

@tlabaj tlabaj commented Aug 19, 2021

What: Closes #6122 and closes #6121

@patternfly-build
Copy link
Contributor

patternfly-build commented Aug 19, 2021

Copy link
Member

@mcarrano mcarrano left a 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:

Screen Shot 2021-08-19 at 9 46 29 AM

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
Copy link
Contributor

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?

Copy link
Contributor

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?

Copy link
Contributor Author

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)

Copy link
Contributor

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

Copy link
Member

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.

Copy link
Contributor Author

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.

Copy link
Contributor

@mcoker mcoker left a 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>
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
<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>
Copy link
Contributor

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

Copy link
Contributor Author

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.

Copy link
Contributor

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 🤦‍♂️

packages/react-core/src/demos/CardDemos.md Outdated Show resolved Hide resolved
Copy link
Contributor

@CooperRedhat CooperRedhat left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@mcarrano mcarrano left a 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 !

Copy link
Contributor

@mcoker mcoker left a comment

Choose a reason for hiding this comment

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

LGTM!

@kmcfaul kmcfaul merged commit 5ffa557 into patternfly:main Aug 20, 2021
@patternfly-build
Copy link
Contributor

Your changes have been released in:

  • @patternfly/react-catalog-view-extension@4.12.51
  • @patternfly/react-code-editor@4.3.37
  • @patternfly/react-console@4.11.19
  • @patternfly/react-core@4.151.2
  • @patternfly/react-docs@5.21.8
  • @patternfly/react-inline-edit-extension@4.7.59
  • demo-app-ts@4.118.2
  • @patternfly/react-log-viewer@4.4.16
  • @patternfly/react-table@4.29.52
  • @patternfly/react-topology@4.9.57
  • @patternfly/react-virtualized-extension@4.9.26

Thanks for your contribution! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Card: Details demo Card: Horizontal Split Demo
7 participants