Skip to content

Commit 3faceb0

Browse files
committed
css: Move no-masthead-sidebar to pf-m-sidebar
This is the official class for it so we no longer need our own workaround. Related-to: patternfly/patternfly#7357 Signed-off-by: Freya Gustavsson <[email protected]>
1 parent c4e1cd8 commit 3faceb0

File tree

22 files changed

+23
-22
lines changed

22 files changed

+23
-22
lines changed

pkg/apps/application-list.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ export const ApplicationList = ({ metainfo_db, appProgress, appProgressTitle, ac
167167
: null;
168168

169169
return (
170-
<Page id="list-page" data-packages-checked={dataPackagesInstalled !== null} className='no-masthead-sidebar'>
170+
<Page id="list-page" data-packages-checked={dataPackagesInstalled !== null} className="pf-m-no-sidebar">
171171
<PageSection hasBodyWrapper={false}>
172172
<Flex alignItems={{ default: 'alignItemsCenter' }}>
173173
<h2 className="pf-v6-u-font-size-3xl">{_("Applications")}</h2>

pkg/apps/application.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ export const Application = ({ metainfo_db, id, progress, action }) => {
139139

140140
return (
141141
<Page id="app-page"
142-
className="application-details no-masthead-sidebar">
142+
className="application-details pf-m-no-sidebar">
143143
<PageBreadcrumb hasBodyWrapper={false} stickyOnBreakpoint={{ default: "top" }}>
144144
<Breadcrumb>
145145
<BreadcrumbItem to="#/">{_("Applications")}</BreadcrumbItem>

pkg/kdump/kdump-view.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,7 @@ ${enableCrashKernel}
592592
}
593593
}
594594
return (
595-
<Page className='no-masthead-sidebar'>
595+
<Page className="pf-m-no-sidebar">
596596
<PageSection hasBodyWrapper={false}>
597597
<Flex spaceItems={{ default: 'spaceItemsMd' }} alignItems={{ default: 'alignItemsCenter' }}>
598598
<Title headingLevel="h2" size="3xl">

pkg/lib/patternfly/patternfly-6-overrides.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,7 @@ $phone: 767px;
293293

294294
// Override as PF Page doesn't allow empty masthead and sidebar
295295
@media (min-width: 75rem) {
296+
// Please use .pf-m-no-sidebar instead as it is the new class name in PF for this
296297
.pf-v6-c-page.no-masthead-sidebar { /* custom class to scope this style to a specific page component instance */
297298
--pf-v6-c-page__main-container--GridArea: var(--pf-v6-c-page--masthead--main-container--GridArea);
298299
}

pkg/metrics/metrics.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1995,7 +1995,7 @@ export const Application = () => {
19951995

19961996
return (
19971997
<WithDialogs>
1998-
<Page className='no-masthead-sidebar'>
1998+
<Page className="pf-m-no-sidebar">
19991999
<PageBreadcrumb
20002000
id='metrics-header-section'
20012001
hasBodyWrapper={false}

pkg/networkmanager/firewall.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1057,7 +1057,7 @@ export class Firewall extends React.Component {
10571057
const enabled = this.state.firewall.enabled;
10581058

10591059
return (
1060-
<Page className='no-masthead-sidebar'>
1060+
<Page className="pf-m-no-sidebar">
10611061
<PageBreadcrumb hasBodyWrapper={false} stickyOnBreakpoint={{ default: "top" }}>
10621062
<Breadcrumb>
10631063
<BreadcrumbItem onClick={go_up} className="pf-v6-c-breadcrumb__link">{_("Networking")}</BreadcrumbItem>

pkg/networkmanager/network-interface.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -699,7 +699,7 @@ export const NetworkInterfacePage = ({
699699
return (
700700
<Page id="network-interface"
701701
data-test-wait={operationInProgress}
702-
className='no-masthead-sidebar'>
702+
className="pf-m-no-sidebar">
703703
<PageBreadcrumb hasBodyWrapper={false} stickyOnBreakpoint={{ default: "top" }}>
704704
<Breadcrumb>
705705
<BreadcrumbItem to='#/'>

pkg/networkmanager/network-main.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ export const NetworkPage = ({ privileged, operationInProgress, usage_monitor, pl
147147
);
148148

149149
return (
150-
<Page data-test-wait={operationInProgress} id="networking" className='no-masthead-sidebar'>
150+
<Page data-test-wait={operationInProgress} id="networking" className="pf-m-no-sidebar">
151151
<PageSection hasBodyWrapper={false} id="networking-graphs" className="networking-graphs">
152152
<NetworkPlots plot_state={plot_state} />
153153
</PageSection>

pkg/packagekit/updates.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1720,7 +1720,7 @@ class OsUpdates extends React.Component {
17201720

17211721
return (
17221722
<WithDialogs>
1723-
<Page className='no-masthead-sidebar'>
1723+
<Page className="pf-m-no-sidebar">
17241724
{content}
17251725
</Page>
17261726
</WithDialogs>

pkg/playground/remote.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const RemotePage = () => {
3333
};
3434

3535
return (
36-
<Page className="no-masthead-sidebar">
36+
<Page className="pf-m-no-sidebar">
3737
<Form isHorizontal>
3838
<FormGroup fieldId="host" label="Host" isRequired>
3939
<TextInput id="host" value={host} onChange={(_ev, value) => setHost(value)} isRequired />

0 commit comments

Comments
 (0)