Skip to content

Commit 9105864

Browse files
tahmidefazclaude
andauthored
fix: update remaining pf-v5 class names and CSS vars to pf-v6 (#881)
Ran @patternfly/class-name-updater and @patternfly/pf-codemods to catch leftover PatternFly v5 references missed during the v5 to v6 migration. Manually fixed SCSS selectors and CSS variables that the automated tools did not cover, and regenerated test snapshots. Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 42db985 commit 9105864

14 files changed

Lines changed: 24 additions & 24 deletions

src/components/recently-visited/recently-visited.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ const RecentlyVisited = () => {
2626
const lastVisited = useLastVisited();
2727
const lastVisitedData = lastVisited.slice(0, 10);
2828
return (
29-
<Content className="pf-m-fill pf-v5-u-px-xl pf-v5-u-py-lg">
30-
<Content component={ContentVariants.h3} className="pf-v5-u-mb-lg">
29+
<Content className="pf-m-fill pf-v6-u-px-xl pf-v6-u-py-lg">
30+
<Content component={ContentVariants.h3} className="pf-v6-u-mb-lg">
3131
Recently visited
3232
</Content>
3333
{lastVisitedData.map(({ bundle, pathname, title }, index) => (

src/components/widgets/explore-capabilities.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ const ExploreCapabilities: React.FunctionComponent = () => {
7373
<Card ouiaId={cardData.ouiaId} isFullHeight>
7474
<CardBody className="pf-v6-u-p-md pf-v6-u-text-align-center land-c-card__body-explore">
7575
<img
76-
className="pf-v5-u-justify-content-center"
76+
className="pf-v6-u-justify-content-center"
7777
src={cardData.img}
7878
alt={cardData.alt}
7979
/>

src/components/widgets/recently-visited.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const RecentlyVisited = () => {
3030
const lastVisited = useLastVisited();
3131
const lastVisitedData = lastVisited.slice(0, 10);
3232
return (
33-
<Gallery hasGutter className="widget-recently-visited pf-v5-u-m-md">
33+
<Gallery hasGutter className="widget-recently-visited pf-v6-u-m-md">
3434
{lastVisitedData.map(({ bundle, pathname, title }, index) => (
3535
<Fragment key={index}>
3636
<Content>

src/components/widgets/simple-service-widget.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,28 +23,28 @@ export const SimpleServiceWidget: React.FunctionComponent<
2323
return (
2424
<Card isPlain>
2525
<>
26-
<CardBody className="pf-v5-u-p-md pf-v5-u-pb-0">
26+
<CardBody className="pf-v6-u-p-md pf-v6-u-pb-0">
2727
<Content
2828
key={props.id}
29-
className="pf-v5-u-display-flex pf-v5-u-flex-direction-column"
29+
className="pf-v6-u-display-flex pf-v6-u-flex-direction-column"
3030
>
31-
<Content component="p" className="pf-v5-u-flex-grow-1">
31+
<Content component="p" className="pf-v6-u-flex-grow-1">
3232
{props.body}{' '}
3333
</Content>
3434
</Content>
3535
</CardBody>
36-
<CardFooter className="pf-v5-u-p-md">
36+
<CardFooter className="pf-v6-u-p-md">
3737
{props.isExternal ? (
3838
<a href={props.url}>
3939
{props.linkTitle}
40-
<Icon className="pf-v5-u-ml-sm" isInline>
40+
<Icon className="pf-v6-u-ml-sm" isInline>
4141
<ExternalLinkAltIcon />
4242
</Icon>
4343
</a>
4444
) : (
4545
<Link to={props.url}>
4646
{props.linkTitle}
47-
<Icon className="pf-v5-u-ml-sm" isInline>
47+
<Icon className="pf-v6-u-ml-sm" isInline>
4848
<ArrowRightIcon />
4949
</Icon>
5050
</Link>

src/components/widgets/support-case-widget.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.pf-v5-c-empty-state {
1+
.pf-v6-c-empty-state {
22
height: 100%;
33
padding: var(--pf-t--global--spacer--md);
44
&__icon {

src/components/widgets/support-case-widget.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ const SupportCaseWidget: React.FunctionComponent = () => {
235235
<Tr key={c.id}>
236236
<Td dataLabel={columnNames.caseId}>
237237
<Button
238-
className="pf-v5-u-pl-0"
238+
className="pf-v6-u-pl-0"
239239
variant="link"
240240
icon={<ExternalLinkAltIcon />}
241241
iconPosition="end"

src/moduleEntries/PdfEntry.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const PdfEntry = ({
3737
return (
3838
<>
3939
<h1>Services</h1>
40-
<div className="pf-v5-u-m-xl">
40+
<div className="pf-v6-u-m-xl">
4141
<Table>
4242
<Thead>
4343
<Tr>

src/routes/404.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const isBeta = () => {
1212

1313
const NotFound = () => (
1414
<div className="landing">
15-
<section className="pf-v5-l-page__main-section pf-v5-c-page__main-section land-c-page__404">
15+
<section className="pf-v6-l-page__main-section pf-v6-c-page__main-section land-c-page__404">
1616
<Title headingLevel="h1" size="3xl">
1717
404: We lost that page
1818
</Title>

src/routes/Logout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const onButtonClick = (url: string) => {
99
};
1010

1111
const Logout = () => (
12-
<section className="pf-v5-l-page__main-section pf-v5-c-page__main-section land-c-page__logout">
12+
<section className="pf-v6-l-page__main-section pf-v6-c-page__main-section land-c-page__logout">
1313
<Title headingLevel="h1" size="3xl">
1414
You have logged out.
1515
</Title>

src/routes/Maintenance.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
justify-content: center;
44
text-align: center;
55

6-
.pf-v5-c-empty-state { margin-top: 64px; }
6+
.pf-v6-c-empty-state { margin-top: 64px; }
77

88
svg {
9-
margin-bottom: var(--pf-v5-c-empty-state__icon--MarginBottom);
9+
margin-bottom: var(--pf-v6-c-empty-state__icon--MarginBottom);
1010
height: 100px;
1111
}
1212
}

0 commit comments

Comments
 (0)