Skip to content

Commit ff792f4

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 7776f54 commit ff792f4

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
@@ -169,7 +169,7 @@ export const ApplicationList = ({ metainfo_db, appProgress, appProgressTitle, ac
169169
: null;
170170

171171
return (
172-
<Page id="list-page" data-packages-checked={dataPackagesInstalled !== null} className='no-masthead-sidebar'>
172+
<Page id="list-page" data-packages-checked={dataPackagesInstalled !== null} className="pf-m-no-sidebar">
173173
<PageSection hasBodyWrapper={false}>
174174
<Flex alignItems={{ default: 'alignItemsCenter' }}>
175175
<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
@@ -340,6 +340,7 @@ $phone: 767px;
340340

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

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
@@ -1690,7 +1690,7 @@ class OsUpdates extends React.Component {
16901690

16911691
return (
16921692
<WithDialogs>
1693-
<Page className='no-masthead-sidebar'>
1693+
<Page className="pf-m-no-sidebar">
16941694
{content}
16951695
</Page>
16961696
</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)