Skip to content

Add OpenShift MultiContentCard (GettingStarted) #112

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

Merged
merged 7 commits into from
Feb 29, 2024
Merged

Conversation

fhlavac
Copy link
Collaborator

@fhlavac fhlavac commented Feb 16, 2024

closes #97
RHCLOUD-30683

Added a new MultiContentCard component to replace OpenShift and HCC implementations.

image

</Card>,
<Card isFullHeight isPlain key="card-2">
<CardBody className="pf-v5-u-display-flex pf-v5-u-pt-3xl-on-md">
<TextContent className="pf-v5-u-display-flex pf-v5-u-flex-direction-column pf-v5-u-align-self-stretch">
Copy link
Contributor

Choose a reason for hiding this comment

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

I think all theses utility classes can be replaced by a Flex layout with modifiers for direction={{ default: 'column' }} and use the various spacing features :https://www.patternfly.org/layouts/flex#spacing to match this demo: https://www.patternfly.org/patterns/dashboard/html-demos/basic/

}
}
},
multiContentCardBorder: {
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's use Divider components rather than borders

@fhlavac
Copy link
Collaborator Author

fhlavac commented Feb 19, 2024

Thanks @nicolethoen for taking a look, working on the updates..

@patternfly-build
Copy link

patternfly-build commented Feb 26, 2024

@fhlavac fhlavac marked this pull request as ready for review February 26, 2024 11:15
</TextContent>
</CardHeader>
<CardBody className="pf-v5-u-display-flex">
<TextContent className="pf-v5-u-display-flex pf-v5-u-flex-direction-column pf-v5-u-align-self-stretch">
Copy link
Contributor

Choose a reason for hiding this comment

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

I believe a Flex layout could be used in place of all these utility classes

Copy link
Contributor

@nicolethoen nicolethoen left a comment

Choose a reason for hiding this comment

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

some opportunity to use Flex in the example code, but overall looks good to me!

@fhlavac fhlavac requested a review from nicolethoen February 28, 2024 08:56
@fhlavac fhlavac merged commit 38d5dc3 into patternfly:main Feb 29, 2024
Copy link

🎉 This PR is included in version 5.1.0-prerelease.10 🎉

The release is available on:

Your semantic-release bot 📦🚀

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.

Migrate OpenShift GettingStarted to component groups
3 participants