-
Notifications
You must be signed in to change notification settings - Fork 13
feat(v6): Update to PatternFly V6 Versions #54
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
Changes from all commits
c25f883
8a3c479
38abbf6
852b12f
131d72b
d163927
fe10357
bd81ee6
462fc7f
a63fe8c
17c18c5
95b8499
bafc9de
f51c84a
46bf5b3
d714e15
5e8fdc0
035f51f
7d9783d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
|
|
@@ -23,47 +23,49 @@ Note: PropertiesSidePanel lives in its own package at [`@patternfly/react-catalo | |||
| import React from 'react'; | ||||
| import { PropertiesSidePanel, PropertyItem } from '@patternfly/react-catalog-view-extension'; | ||||
| import OkIcon from '@patternfly/react-icons/dist/esm/icons/ok-icon'; | ||||
| import { Icon } from '@patternfly/react-core'; | ||||
| import ExternalLinkAltIcon from '@patternfly/react-icons/dist/esm/icons/external-link-alt-icon'; | ||||
| import GlobeIcon from '@patternfly/react-icons/dist/esm/icons/globe-icon'; | ||||
|
|
||||
| <div style={{ display: 'inline-block', padding: '15px', border: '1px solid grey' }}> | ||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Took this wrapper off just so it's clear what style is coming from |
||||
| <PropertiesSidePanel> | ||||
| <PropertyItem label="Operator Version" value="0.9.8 (latest)" /> | ||||
| <PropertyItem | ||||
| label="Certified Level" | ||||
| value={ | ||||
| <span> | ||||
| <OkIcon style={{color: 'var(--pf-v5-global--success-color--100)'}} /> Certified | ||||
| </span> | ||||
| } | ||||
| /> | ||||
| <PropertyItem label="Provider" value="Red Hat, Inc" /> | ||||
| <PropertyItem label="Health Index" value="A" /> | ||||
| <PropertyItem | ||||
| label="Repository" | ||||
| value={ | ||||
| <a href="https://quay.io/repository/redhat/prometheus-operator"> | ||||
| https://quay.io/repository/redhat/prometheus-operator | ||||
| </a> | ||||
| } | ||||
| /> | ||||
| <PropertyItem | ||||
| label="Container Image" | ||||
| value={ | ||||
| <a href="#"> | ||||
| 0.22.2 <ExternalLinkAltIcon /> | ||||
| </a> | ||||
| } | ||||
| /> | ||||
| <PropertyItem | ||||
| label="Created At" | ||||
| value={ | ||||
| <span> | ||||
| <GlobeIcon /> Aug 23, 1:58pm | ||||
| </span> | ||||
| } | ||||
| /> | ||||
| <PropertyItem label="Support" value={<a href="#">Red Hat</a>} /> | ||||
| </PropertiesSidePanel> | ||||
| </div> | ||||
| <PropertiesSidePanel> | ||||
| <PropertyItem label="Operator Version" value="0.9.8 (latest)" /> | ||||
| <PropertyItem | ||||
|
Comment on lines
+30
to
+32
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ideally this should just be a react-catalog-view/packages/module/patternfly-docs/content/examples/propertiesSidePanel.css Line 2 in d714e15
Everything else comes for free 💸 |
||||
| label="Certified Level" | ||||
| value={ | ||||
| <> | ||||
| <Icon status="success"> | ||||
| <OkIcon /> | ||||
| </Icon> | ||||
| Certified | ||||
| </> | ||||
| } | ||||
| /> | ||||
| <PropertyItem label="Provider" value="Red Hat, Inc" /> | ||||
| <PropertyItem label="Health Index" value="A" /> | ||||
| <PropertyItem | ||||
| label="Repository" | ||||
| value={ | ||||
| <a href="https://quay.io/repository/redhat/prometheus-operator"> | ||||
| https://quay.io/repository/redhat/prometheus-operator | ||||
| </a> | ||||
| } | ||||
| /> | ||||
| <PropertyItem | ||||
| label="Container Image" | ||||
| value={ | ||||
| <a href="#"> | ||||
| 0.22.2 <ExternalLinkAltIcon /> | ||||
| </a> | ||||
| } | ||||
| /> | ||||
| <PropertyItem | ||||
| label="Created At" | ||||
| value={ | ||||
| <span> | ||||
| <GlobeIcon /> Aug 23, 1:58pm | ||||
| </span> | ||||
| } | ||||
| /> | ||||
| <PropertyItem label="Support" value={<a href="#">Red Hat</a>} /> | ||||
| </PropertiesSidePanel> | ||||
| ``` | ||||
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.
Removed the border and example padding so it's clear what's coming from
<FilterSidePanel>and what's part of the example. Left the width because there is no width on<FilterSidePanel>and I'm assuming this panel goes into some parent/container with a constrained width, so this will mimic closer how the component will display. Ideally I'd probably drop this width, too, so you're just seeing the extension styles.Just dropping a note here but this and the properties side panel seem to share some styling - they're narrow, probably have padding around them. And
<FilterSidePanel>has padding and no width, and<PropertiesSidePanel>has a width and no padding. I'm guessing that's fine, but wondering if there could be some consistency there.