-
Notifications
You must be signed in to change notification settings - Fork 647
CONSOLE-4658: Replace Bootstrap Small text with PatternFly Extra Smal… #15256
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
base: main
Are you sure you want to change the base?
Conversation
@rhamilto: This pull request references CONSOLE-4658 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.20.0" version, but no target version was set. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
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.
A few notes on changes to aid with the review.
@@ -23,9 +23,7 @@ export const InventoryItemBody: React.FC<InventoryItemBodyProps> = ({ error, chi | |||
return ( | |||
<div className="co-inventory-card__item-status"> | |||
{error ? ( | |||
<div className="co-dashboard-text--small pf-v6-u-text-color-subtle"> |
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.
co-dashboard-text--small
has no associated CSS.
|
||
type DropdownItemProps = { | ||
model: K8sKind; | ||
name: string; | ||
namespace?: string; |
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.
namespace
is unused so remove it to clean up instance of small
.
@@ -29,11 +29,6 @@ | |||
p { | |||
margin-bottom: 0 !important; | |||
} | |||
|
|||
small { |
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.
Not needed as appropriate styling is coming from PatternFly already.
@@ -37,7 +37,7 @@ const KnEventMetaDescription: React.FC<KnEventMetaDescriptionProps> = ({ normali | |||
{name} | |||
</Title> | |||
{provider && ( | |||
<span className="co-clusterserviceversion-logo__name__provider pf-v6-u-text-color-subtle"> |
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.
co-clusterserviceversion-logo__name__provider
has no associated CSS.
@@ -36,7 +36,7 @@ const HelmChartMetaDescription: React.FC<HelmChartMetaDescriptionProps> = ({ cha | |||
{displayName} | |||
</Title> | |||
{provider && ( | |||
<span className="co-clusterserviceversion-logo__name__provider pf-v6-u-text-color-subtle"> |
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.
co-clusterserviceversion-logo__name__provider
has no associated CSS.
@@ -6,12 +6,6 @@ | |||
display: flex; | |||
align-items: center; | |||
flex: 1; | |||
.small { |
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.
Replaced by PatternFly util classes.
@@ -168,7 +168,7 @@ const Inner = connectToFlags(FLAGS.CAN_LIST_NODE)((props) => { | |||
{lastTime && <Timestamp className="co-sysevent__timestamp" timestamp={lastTime} />} | |||
</div> | |||
<div className="co-sysevent__details"> | |||
<small className="co-sysevent__source"> |
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.
co-sysevent__source
has no associated CSS.
<div className="co-sysevent__count-and-actions"> | ||
{count > 1 && firstTime && ( | ||
<Trans ns="public"> | ||
<small className="co-sysevent__count pf-v6-u-text-color-subtle"> |
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.
co-sysevent__count
has no associated CSS.
</Trans> | ||
)} | ||
{count > 1 && !firstTime && ( | ||
<Trans ns="public"> | ||
<small className="co-sysevent__count pf-v6-u-text-color-subtle"> |
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.
co-sysevent__count
has no associated CSS.
@@ -154,10 +161,10 @@ export const ExploreType: React.FC<ExploreTypeProps> = (props) => { | |||
> | |||
<CamelCaseWrap value={name} /> | |||
| |||
<small> | |||
<Content component={ContentVariants.small}> |
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.
Changed to <Content>
since this is inside an existing <Content>
on line 132.
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
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: logonoff, rhamilto The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@rhamilto: The following test failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
…l Text
className="small"
withclassName="pf-v6-u-font-size-xs"
<small>
with<span className="pf-v6-u-font-size-xs">
or<Content component={ContentVariants.small}>
if the existing<small>
is within a<Content>