@patternfly/patternfly 5.0.0-alpha.75 → 5.0.0-alpha.77
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/Masthead/masthead.css +15 -3
- package/components/Masthead/masthead.scss +16 -4
- package/components/Toolbar/toolbar.css +2 -1
- package/components/Toolbar/toolbar.scss +2 -1
- package/docs/components/Alert/examples/Alert.md +1 -1
- package/docs/components/AppLauncher/deprecated/application-launcher.css +25 -0
- package/docs/components/AppLauncher/{examples → deprecated}/application-launcher.md +1 -0
- package/docs/components/Card/examples/Card.md +10 -10
- package/docs/components/Chip/examples/Chip.md +1 -1
- package/docs/components/ContextSelector/deprecated/context-selector.css +7 -0
- package/docs/components/ContextSelector/{examples → deprecated}/context-selector.md +1 -0
- package/docs/components/Label/examples/Label.md +1 -1
- package/docs/components/Nav/examples/Navigation.md +4 -4
- package/docs/components/OptionsMenu/deprecated/options-menu.css +25 -0
- package/docs/components/OptionsMenu/{examples → deprecated}/options-menu.md +1 -0
- package/docs/components/Page/deprecated/PageHeader.css +17 -0
- package/docs/components/Page/deprecated/PageHeader.md +261 -0
- package/docs/components/Page/examples/Page.md +106 -51
- package/docs/components/Tabs/examples/Tabs.md +6 -6
- package/docs/components/Toolbar/examples/Toolbar.md +15 -15
- package/docs/demos/ContextSelector/examples/ContextSelector.md +1 -0
- package/docs/demos/Dashboard/examples/Dashboard.md +0 -1
- package/docs/demos/DataList/examples/DataList.md +6 -6
- package/docs/demos/Masthead/examples/Masthead.md +9 -9
- package/docs/demos/Nav/examples/Nav.md +2 -2
- package/docs/demos/PrimaryDetail/examples/PrimaryDetail.md +9 -18
- package/docs/demos/Table/examples/Table.md +36 -42
- package/docs/demos/Toolbar/examples/Toolbar.md +12 -12
- package/package.json +5 -5
- package/patternfly-no-globals.css +17 -4
- package/patternfly-theme-dark-unversioned.css +17 -4
- package/patternfly.css +17 -4
- package/patternfly.min.css +1 -1
- package/patternfly.min.css.map +1 -1
- package/docs/components/AppLauncher/examples/application-launcher.css +0 -25
- package/docs/components/ContextSelector/examples/context-selector.css +0 -7
- package/docs/components/OptionsMenu/examples/options-menu.css +0 -25
|
@@ -89,6 +89,7 @@
|
|
|
89
89
|
--pf-v5-c-masthead--c-menu-toggle--before--BorderLeftColor: var(--pf-v5-c-masthead--item-border-color--base);
|
|
90
90
|
--pf-v5-c-masthead--c-menu-toggle--m-full-height--before--BorderTopColor: transparent;
|
|
91
91
|
--pf-v5-c-masthead--c-menu-toggle--m-full-height--before--BorderBottomColor: transparent;
|
|
92
|
+
--pf-v5-c-masthead--c-toolbar--BackgroundColor: var(--pf-v5-c-masthead--BackgroundColor);
|
|
92
93
|
--pf-v5-c-masthead--c-toolbar--AlignItems--base: center;
|
|
93
94
|
--pf-v5-c-masthead--c-toolbar__content--PaddingRight: 0;
|
|
94
95
|
--pf-v5-c-masthead--c-toolbar__content--PaddingLeft: 0;
|
|
@@ -96,8 +97,8 @@
|
|
|
96
97
|
--pf-v5-c-masthead--c-toolbar__expandable-content--PaddingRight: var(--pf-v5-c-masthead--inset);
|
|
97
98
|
--pf-v5-c-masthead--c-toolbar__expandable-content--PaddingBottom: var(--pf-v5-global--spacer--md);
|
|
98
99
|
--pf-v5-c-masthead--c-toolbar__expandable-content--PaddingLeft: var(--pf-v5-c-masthead--inset);
|
|
99
|
-
--pf-v5-c-masthead--c-toolbar__expandable-content--BorderTopWidth: var(--pf-v5-global--BorderWidth--sm);
|
|
100
|
-
--pf-v5-c-masthead--c-toolbar__expandable-content--BorderTopColor: var(--pf-v5-c-masthead--item-border-color--base);
|
|
100
|
+
--pf-v5-c-masthead--c-toolbar__expandable-content--before--BorderTopWidth: var(--pf-v5-global--BorderWidth--sm);
|
|
101
|
+
--pf-v5-c-masthead--c-toolbar__expandable-content--before--BorderTopColor: var(--pf-v5-c-masthead--item-border-color--base);
|
|
101
102
|
--pf-v5-c-masthead--GridTemplateColumns: var(--pf-v5-c-masthead--m-display-stack--GridTemplateColumns);
|
|
102
103
|
--pf-v5-c-masthead__main--GridColumn: var(--pf-v5-c-masthead--m-display-stack__main--GridColumn);
|
|
103
104
|
--pf-v5-c-masthead__main--MinHeight: var(--pf-v5-c-masthead--m-display-stack__main--MinHeight);
|
|
@@ -162,6 +163,7 @@
|
|
|
162
163
|
--pf-v5-c-masthead__main--BorderBottomColor: var(--pf-v5-c-masthead--m-light-200__main--BorderBottomColor);
|
|
163
164
|
}
|
|
164
165
|
.pf-v5-c-masthead .pf-v5-c-toolbar {
|
|
166
|
+
--pf-v5-c-toolbar--BackgroundColor: var(--pf-v5-c-masthead--c-toolbar--BackgroundColor);
|
|
165
167
|
--pf-v5-c-toolbar--AlignItems--base: var(--pf-v5-c-masthead--c-toolbar--AlignItems--base);
|
|
166
168
|
--pf-v5-c-toolbar__content--PaddingRight: var(--pf-v5-c-masthead--c-toolbar__content--PaddingRight);
|
|
167
169
|
--pf-v5-c-toolbar__content--PaddingLeft: var(--pf-v5-c-masthead--c-toolbar__content--PaddingLeft);
|
|
@@ -175,7 +177,17 @@
|
|
|
175
177
|
flex-wrap: nowrap;
|
|
176
178
|
}
|
|
177
179
|
.pf-v5-c-masthead .pf-v5-c-toolbar__expandable-content {
|
|
178
|
-
|
|
180
|
+
top: 100%;
|
|
181
|
+
}
|
|
182
|
+
.pf-v5-c-masthead .pf-v5-c-toolbar__expandable-content::before {
|
|
183
|
+
position: absolute;
|
|
184
|
+
top: 0;
|
|
185
|
+
right: 0;
|
|
186
|
+
bottom: 0;
|
|
187
|
+
left: 0;
|
|
188
|
+
content: "";
|
|
189
|
+
border-top: var(--pf-v5-c-masthead--c-toolbar__expandable-content--before--BorderTopWidth) solid var(--pf-v5-c-masthead--c-toolbar__expandable-content--before--BorderTopColor);
|
|
190
|
+
box-shadow: var(--pf-v5-c-toolbar__expandable-content--before--BoxShadow);
|
|
179
191
|
}
|
|
180
192
|
.pf-v5-c-masthead .pf-v5-c-menu-toggle {
|
|
181
193
|
--pf-v5-c-menu-toggle--before--BorderTopColor: var(--pf-v5-c-masthead--c-menu-toggle--before--BorderTopColor);
|
|
@@ -139,6 +139,7 @@ $pf-v5-c-masthead--inset-map: build-spacer-map("none", "sm", "md", "lg", "xl", "
|
|
|
139
139
|
--#{$masthead}--c-menu-toggle--m-full-height--before--BorderBottomColor: transparent;
|
|
140
140
|
|
|
141
141
|
// Toolbar
|
|
142
|
+
--#{$masthead}--c-toolbar--BackgroundColor: var(--#{$masthead}--BackgroundColor);
|
|
142
143
|
--#{$masthead}--c-toolbar--AlignItems--base: center;
|
|
143
144
|
--#{$masthead}--c-toolbar__content--PaddingRight: 0;
|
|
144
145
|
--#{$masthead}--c-toolbar__content--PaddingLeft: 0;
|
|
@@ -146,9 +147,8 @@ $pf-v5-c-masthead--inset-map: build-spacer-map("none", "sm", "md", "lg", "xl", "
|
|
|
146
147
|
--#{$masthead}--c-toolbar__expandable-content--PaddingRight: var(--#{$masthead}--inset);
|
|
147
148
|
--#{$masthead}--c-toolbar__expandable-content--PaddingBottom: var(--#{$pf-global}--spacer--md);
|
|
148
149
|
--#{$masthead}--c-toolbar__expandable-content--PaddingLeft: var(--#{$masthead}--inset);
|
|
149
|
-
--#{$masthead}--c-toolbar__expandable-content--BorderTopWidth: var(--#{$pf-global}--BorderWidth--sm);
|
|
150
|
-
--#{$masthead}--c-toolbar__expandable-content--BorderTopColor: var(--#{$masthead}--item-border-color--base);
|
|
151
|
-
|
|
150
|
+
--#{$masthead}--c-toolbar__expandable-content--before--BorderTopWidth: var(--#{$pf-global}--BorderWidth--sm);
|
|
151
|
+
--#{$masthead}--c-toolbar__expandable-content--before--BorderTopColor: var(--#{$masthead}--item-border-color--base);
|
|
152
152
|
|
|
153
153
|
// Set layout to stack by default
|
|
154
154
|
@include pf-v5-c-masthead--m-display-stack;
|
|
@@ -190,6 +190,7 @@ $pf-v5-c-masthead--inset-map: build-spacer-map("none", "sm", "md", "lg", "xl", "
|
|
|
190
190
|
}
|
|
191
191
|
|
|
192
192
|
.#{$toolbar} {
|
|
193
|
+
--#{$toolbar}--BackgroundColor: var(--#{$masthead}--c-toolbar--BackgroundColor);
|
|
193
194
|
--#{$toolbar}--AlignItems--base: var(--#{$masthead}--c-toolbar--AlignItems--base);
|
|
194
195
|
--#{$toolbar}__content--PaddingRight: var(--#{$masthead}--c-toolbar__content--PaddingRight);
|
|
195
196
|
--#{$toolbar}__content--PaddingLeft: var(--#{$masthead}--c-toolbar__content--PaddingLeft);
|
|
@@ -206,7 +207,18 @@ $pf-v5-c-masthead--inset-map: build-spacer-map("none", "sm", "md", "lg", "xl", "
|
|
|
206
207
|
}
|
|
207
208
|
|
|
208
209
|
.#{$toolbar}__expandable-content {
|
|
209
|
-
|
|
210
|
+
top: 100%;
|
|
211
|
+
|
|
212
|
+
&::before {
|
|
213
|
+
position: absolute;
|
|
214
|
+
top: 0;
|
|
215
|
+
right: 0;
|
|
216
|
+
bottom: 0;
|
|
217
|
+
left: 0;
|
|
218
|
+
content: '';
|
|
219
|
+
border-top: var(--#{$masthead}--c-toolbar__expandable-content--before--BorderTopWidth) solid var(--#{$masthead}--c-toolbar__expandable-content--before--BorderTopColor);
|
|
220
|
+
box-shadow: var(--#{$toolbar}__expandable-content--before--BoxShadow);
|
|
221
|
+
}
|
|
210
222
|
}
|
|
211
223
|
|
|
212
224
|
.#{$menu-toggle} {
|
|
@@ -76,6 +76,7 @@
|
|
|
76
76
|
--pf-v5-c-toolbar--m-page-insets--inset: var(--pf-v5-global--spacer--md);
|
|
77
77
|
--pf-v5-c-toolbar--m-page-insets--xl--inset: var(--pf-v5-global--spacer--lg);
|
|
78
78
|
--pf-v5-c-toolbar__expandable-content--Display: grid;
|
|
79
|
+
--pf-v5-c-toolbar__expandable-content--PaddingTop: 0;
|
|
79
80
|
--pf-v5-c-toolbar__expandable-content--PaddingRight: var(--pf-v5-c-toolbar__content--PaddingRight);
|
|
80
81
|
--pf-v5-c-toolbar__expandable-content--PaddingBottom: var(--pf-v5-global--spacer--md);
|
|
81
82
|
--pf-v5-c-toolbar__expandable-content--PaddingLeft: var(--pf-v5-c-toolbar__content--PaddingLeft);
|
|
@@ -415,7 +416,7 @@
|
|
|
415
416
|
z-index: var(--pf-v5-c-toolbar__expandable-content--ZIndex);
|
|
416
417
|
display: none;
|
|
417
418
|
width: 100%;
|
|
418
|
-
padding:
|
|
419
|
+
padding: var(--pf-v5-c-toolbar__expandable-content--PaddingTop) var(--pf-v5-c-toolbar__expandable-content--PaddingRight) var(--pf-v5-c-toolbar__expandable-content--PaddingBottom) var(--pf-v5-c-toolbar__expandable-content--PaddingLeft);
|
|
419
420
|
background-color: var(--pf-v5-c-toolbar__expandable-content--BackgroundColor);
|
|
420
421
|
box-shadow: var(--pf-v5-c-toolbar__expandable-content--BoxShadow);
|
|
421
422
|
}
|
|
@@ -48,6 +48,7 @@ $pf-v5-c-toolbar--inset-map: build-spacer-map("none", "sm", "md", "lg", "xl", "2
|
|
|
48
48
|
|
|
49
49
|
// Expandable content
|
|
50
50
|
--#{$toolbar}__expandable-content--Display: grid;
|
|
51
|
+
--#{$toolbar}__expandable-content--PaddingTop: 0;
|
|
51
52
|
--#{$toolbar}__expandable-content--PaddingRight: var(--#{$toolbar}__content--PaddingRight);
|
|
52
53
|
--#{$toolbar}__expandable-content--PaddingBottom: var(--#{$pf-global}--spacer--md);
|
|
53
54
|
--#{$toolbar}__expandable-content--PaddingLeft: var(--#{$toolbar}__content--PaddingLeft);
|
|
@@ -445,7 +446,7 @@ $pf-v5-c-toolbar--inset-map: build-spacer-map("none", "sm", "md", "lg", "xl", "2
|
|
|
445
446
|
z-index: var(--#{$toolbar}__expandable-content--ZIndex);
|
|
446
447
|
display: none;
|
|
447
448
|
width: 100%;
|
|
448
|
-
padding:
|
|
449
|
+
padding: var(--#{$toolbar}__expandable-content--PaddingTop) var(--#{$toolbar}__expandable-content--PaddingRight) var(--#{$toolbar}__expandable-content--PaddingBottom) var(--#{$toolbar}__expandable-content--PaddingLeft);
|
|
449
450
|
background-color: var(--#{$toolbar}__expandable-content--BackgroundColor);
|
|
450
451
|
box-shadow: var(--#{$toolbar}__expandable-content--BoxShadow);
|
|
451
452
|
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
#ws-html-deprecated-c-application-launcher-aligned-right,
|
|
2
|
+
#ws-html-deprecated-c-application-launcher-aligned-top,
|
|
3
|
+
#ws-html-deprecated-c-application-launcher-expanded {
|
|
4
|
+
min-height: 216px;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
#ws-html-deprecated-c-application-launcher-aligned-right {
|
|
8
|
+
display: flex;
|
|
9
|
+
justify-content: flex-end;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
#ws-html-deprecated-c-application-launcher-aligned-top {
|
|
13
|
+
display: flex;
|
|
14
|
+
align-items: flex-end;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
#ws-html-deprecated-c-application-launcher-with-sections-and-dividers-between-sections,
|
|
18
|
+
#ws-html-deprecated-c-application-launcher-with-sections-and-dividers-between-items,
|
|
19
|
+
#ws-html-deprecated-c-application-launcher-with-sections-dividers-icons-and-external-links {
|
|
20
|
+
min-height: 424px;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
#ws-html-deprecated-c-application-launcher-favorites {
|
|
24
|
+
min-height: 540px;
|
|
25
|
+
}
|
|
@@ -891,9 +891,9 @@ cssPrefix: pf-v5-c-card
|
|
|
891
891
|
|
|
892
892
|
```
|
|
893
893
|
|
|
894
|
-
### Hoverable raised
|
|
894
|
+
### Hoverable raised
|
|
895
895
|
|
|
896
|
-
```html
|
|
896
|
+
```html isDeprecated
|
|
897
897
|
<div class="pf-v5-c-card pf-m-hoverable-raised" id="card-hoverable-example">
|
|
898
898
|
<div class="pf-v5-c-card__title">
|
|
899
899
|
<h2 class="pf-v5-c-card__title-text">Title</h2>
|
|
@@ -904,9 +904,9 @@ cssPrefix: pf-v5-c-card
|
|
|
904
904
|
|
|
905
905
|
```
|
|
906
906
|
|
|
907
|
-
### Selectable raised
|
|
907
|
+
### Selectable raised
|
|
908
908
|
|
|
909
|
-
```html
|
|
909
|
+
```html isDeprecated
|
|
910
910
|
<div
|
|
911
911
|
class="pf-v5-c-card pf-m-selectable-raised"
|
|
912
912
|
tabindex="0"
|
|
@@ -921,9 +921,9 @@ cssPrefix: pf-v5-c-card
|
|
|
921
921
|
|
|
922
922
|
```
|
|
923
923
|
|
|
924
|
-
### Selected raised
|
|
924
|
+
### Selected raised
|
|
925
925
|
|
|
926
|
-
```html
|
|
926
|
+
```html isDeprecated
|
|
927
927
|
<div
|
|
928
928
|
class="pf-v5-c-card pf-m-selectable-raised pf-m-selected-raised"
|
|
929
929
|
tabindex="0"
|
|
@@ -938,9 +938,9 @@ cssPrefix: pf-v5-c-card
|
|
|
938
938
|
|
|
939
939
|
```
|
|
940
940
|
|
|
941
|
-
### Selectable raised with a hidden input for improved screen reader accessibility
|
|
941
|
+
### Selectable raised with a hidden input for improved screen reader accessibility
|
|
942
942
|
|
|
943
|
-
```html
|
|
943
|
+
```html isDeprecated
|
|
944
944
|
<input
|
|
945
945
|
class="pf-v5-c-card__sr-input pf-v5-screen-reader"
|
|
946
946
|
type="checkbox"
|
|
@@ -961,9 +961,9 @@ cssPrefix: pf-v5-c-card
|
|
|
961
961
|
|
|
962
962
|
```
|
|
963
963
|
|
|
964
|
-
### Non selectable raised
|
|
964
|
+
### Non selectable raised
|
|
965
965
|
|
|
966
|
-
```html
|
|
966
|
+
```html isDeprecated
|
|
967
967
|
<div
|
|
968
968
|
class="pf-v5-c-card pf-m-non-selectable-raised"
|
|
969
969
|
id="card-non-selectable-raised-example"
|
|
@@ -592,9 +592,9 @@ cssPrefix: pf-v5-c-nav
|
|
|
592
592
|
|
|
593
593
|
```
|
|
594
594
|
|
|
595
|
-
###
|
|
595
|
+
### Tertiary
|
|
596
596
|
|
|
597
|
-
```html
|
|
597
|
+
```html isDeprecated
|
|
598
598
|
<nav class="pf-v5-c-nav pf-m-tertiary" aria-label="Local">
|
|
599
599
|
<button class="pf-v5-c-nav__scroll-button" disabled aria-label="Scroll left">
|
|
600
600
|
<i class="fas fa-angle-left" aria-hidden="true"></i>
|
|
@@ -621,9 +621,9 @@ cssPrefix: pf-v5-c-nav
|
|
|
621
621
|
|
|
622
622
|
```
|
|
623
623
|
|
|
624
|
-
###
|
|
624
|
+
### Tertiary overflow
|
|
625
625
|
|
|
626
|
-
```html
|
|
626
|
+
```html isDeprecated
|
|
627
627
|
<nav class="pf-v5-c-nav pf-m-tertiary pf-m-scrollable" aria-label="Local">
|
|
628
628
|
<button class="pf-v5-c-nav__scroll-button" disabled aria-label="Scroll left">
|
|
629
629
|
<i class="fas fa-angle-left" aria-hidden="true"></i>
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
#ws-html-deprecated-c-options-menu-single-option,
|
|
2
|
+
#ws-html-deprecated-c-options-menu-plain,
|
|
3
|
+
#ws-html-deprecated-c-options-menu-align-right,
|
|
4
|
+
#ws-html-deprecated-c-options-menu-align-top {
|
|
5
|
+
min-height: 215px;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
#ws-html-deprecated-c-options-menu-multiple-options {
|
|
9
|
+
min-height: 350px;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
#ws-html-deprecated-c-options-menu-plain-with-text {
|
|
13
|
+
min-height: 280px;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
#ws-html-deprecated-c-options-menu-align-top {
|
|
17
|
+
display: flex;
|
|
18
|
+
align-items: flex-end;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
#ws-html-deprecated-c-options-menu-with-groups,
|
|
22
|
+
#ws-html-deprecated-c-options-menu-with-groups-and-dividers-between-groups,
|
|
23
|
+
#ws-html-deprecated-c-options-menu-with-groups-and-dividers-between-items {
|
|
24
|
+
min-height: 450px;
|
|
25
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
.ws-html-deprecated-c-page :is(.pf-v5-c-page__sidebar, .pf-v5-c-page__main-subnav) {
|
|
2
|
+
color: var(--pf-v5-global--Color--light-100);
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.ws-html-deprecated-c-page .pf-v5-c-page__main-section.pf-m-dark-200 {
|
|
6
|
+
color: var(--pf-v5-global--Color--dark-100);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
#ws-html-deprecated-c-page-with-or-without-fill .ws-preview-html,
|
|
10
|
+
#ws-html-deprecated-c-page-multiple-sidebar-body-elements-padding-and-fill .ws-preview-html {
|
|
11
|
+
height: 500px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
#ws-html-deprecated-c-page-multiple-sidebar-body-elements .ws-preview-html,
|
|
15
|
+
#ws-html-deprecated-c-page-using-flex-layout .ws-preview-html {
|
|
16
|
+
height: 100%;
|
|
17
|
+
}
|
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: Page
|
|
3
|
+
section: components
|
|
4
|
+
wrapperTag: div
|
|
5
|
+
deprecated: true
|
|
6
|
+
---import './PageHeader.css'
|
|
7
|
+
|
|
8
|
+
## Page header examples
|
|
9
|
+
|
|
10
|
+
### Vertical nav
|
|
11
|
+
|
|
12
|
+
```html
|
|
13
|
+
<div class="pf-v5-c-page">
|
|
14
|
+
<header class="pf-v5-c-page__header">
|
|
15
|
+
<div class="pf-v5-c-page__header-brand">
|
|
16
|
+
<div class="pf-v5-c-page__header-brand-toggle">toggle</div>
|
|
17
|
+
<a href="#" class="pf-v5-c-page__header-brand-link">Logo</a>
|
|
18
|
+
</div>
|
|
19
|
+
<div class="pf-v5-c-page__header-tools">header-tools</div>
|
|
20
|
+
</header>
|
|
21
|
+
<div class="pf-v5-c-page__sidebar">
|
|
22
|
+
<div class="pf-v5-c-page__sidebar-body">Navigation</div>
|
|
23
|
+
</div>
|
|
24
|
+
<main class="pf-v5-c-page__main" tabindex="-1">
|
|
25
|
+
<section class="pf-v5-c-page__main-section pf-m-dark-100">
|
|
26
|
+
This
|
|
27
|
+
<code>.pf-v5-c-page__main-section</code> uses
|
|
28
|
+
<code>.pf-m-dark-100</code>.
|
|
29
|
+
</section>
|
|
30
|
+
<section class="pf-v5-c-page__main-section pf-m-dark-200">
|
|
31
|
+
This
|
|
32
|
+
<code>.pf-v5-c-page__main-section</code> uses
|
|
33
|
+
<code>.pf-m-dark-200</code>.
|
|
34
|
+
</section>
|
|
35
|
+
<section class="pf-v5-c-page__main-section pf-m-light">
|
|
36
|
+
This
|
|
37
|
+
<code>.pf-v5-c-page__main-section</code> uses
|
|
38
|
+
<code>.pf-m-light</code>.
|
|
39
|
+
</section>
|
|
40
|
+
<section class="pf-v5-c-page__main-section">
|
|
41
|
+
This is a default
|
|
42
|
+
<code>.pf-v5-c-page__main-section</code>.
|
|
43
|
+
</section>
|
|
44
|
+
</main>
|
|
45
|
+
</div>
|
|
46
|
+
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
### Horizontal nav
|
|
50
|
+
|
|
51
|
+
```html
|
|
52
|
+
<div class="pf-v5-c-page">
|
|
53
|
+
<header class="pf-v5-c-page__header">
|
|
54
|
+
<div class="pf-v5-c-page__header-brand">
|
|
55
|
+
<a href="#" class="pf-v5-c-page__header-brand-link">Logo</a>
|
|
56
|
+
</div>
|
|
57
|
+
<div class="pf-v5-c-page__header-nav">Navigation</div>
|
|
58
|
+
<div class="pf-v5-c-page__header-tools">header-tools</div>
|
|
59
|
+
</header>
|
|
60
|
+
<main class="pf-v5-c-page__main" tabindex="-1">
|
|
61
|
+
<section class="pf-v5-c-page__main-section pf-m-dark-100"></section>
|
|
62
|
+
<section class="pf-v5-c-page__main-section pf-m-dark-200"></section>
|
|
63
|
+
<section class="pf-v5-c-page__main-section pf-m-light"></section>
|
|
64
|
+
<section class="pf-v5-c-page__main-section"></section>
|
|
65
|
+
</main>
|
|
66
|
+
</div>
|
|
67
|
+
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
### Multiple sidebar body elements, padding, and fill
|
|
71
|
+
|
|
72
|
+
```html
|
|
73
|
+
<div class="pf-v5-c-page">
|
|
74
|
+
<header class="pf-v5-c-page__header">
|
|
75
|
+
<div class="pf-v5-c-page__header-brand">
|
|
76
|
+
<div class="pf-v5-c-page__header-brand-toggle">toggle</div>
|
|
77
|
+
<a href="#" class="pf-v5-c-page__header-brand-link">Logo</a>
|
|
78
|
+
</div>
|
|
79
|
+
<div class="pf-v5-c-page__header-tools">header-tools</div>
|
|
80
|
+
</header>
|
|
81
|
+
<div class="pf-v5-c-page__sidebar">
|
|
82
|
+
<div class="pf-v5-c-page__sidebar-body">Navigation</div>
|
|
83
|
+
<div
|
|
84
|
+
class="pf-v5-c-page__sidebar-body pf-m-fill pf-m-page-insets"
|
|
85
|
+
>inset content</div>
|
|
86
|
+
<div class="pf-v5-c-page__sidebar-body pf-m-page-insets">footer content</div>
|
|
87
|
+
</div>
|
|
88
|
+
<main class="pf-v5-c-page__main" tabindex="-1">
|
|
89
|
+
<section class="pf-v5-c-page__main-section pf-m-light"></section>
|
|
90
|
+
</main>
|
|
91
|
+
</div>
|
|
92
|
+
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
### With or without fill
|
|
96
|
+
|
|
97
|
+
```html
|
|
98
|
+
<div class="pf-v5-c-page">
|
|
99
|
+
<header class="pf-v5-c-page__header">
|
|
100
|
+
<div class="pf-v5-c-page__header-brand">
|
|
101
|
+
<a href="#" class="pf-v5-c-page__header-brand-link">Logo</a>
|
|
102
|
+
</div>
|
|
103
|
+
<div class="pf-v5-c-page__header-nav">Navigation</div>
|
|
104
|
+
<div class="pf-v5-c-page__header-tools">header-tools</div>
|
|
105
|
+
</header>
|
|
106
|
+
<main class="pf-v5-c-page__main" tabindex="-1">
|
|
107
|
+
<section
|
|
108
|
+
class="pf-v5-c-page__main-section pf-m-light"
|
|
109
|
+
>A regular page section.</section>
|
|
110
|
+
<section class="pf-v5-c-page__main-section pf-m-fill">
|
|
111
|
+
This section uses
|
|
112
|
+
<code>.pf-m-fill</code> to fill the available space.
|
|
113
|
+
</section>
|
|
114
|
+
<section class="pf-v5-c-page__main-section pf-m-light pf-m-no-fill">
|
|
115
|
+
This section uses
|
|
116
|
+
<code>.pf-m-no-fill</code> to not fill the available space.
|
|
117
|
+
</section>
|
|
118
|
+
</main>
|
|
119
|
+
</div>
|
|
120
|
+
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
### Main section padding
|
|
124
|
+
|
|
125
|
+
```html
|
|
126
|
+
<div class="pf-v5-c-page">
|
|
127
|
+
<header class="pf-v5-c-page__header">
|
|
128
|
+
<div class="pf-v5-c-page__header-brand">
|
|
129
|
+
<div class="pf-v5-c-page__header-brand-toggle">toggle</div>
|
|
130
|
+
<a href="#" class="pf-v5-c-page__header-brand-link">Logo</a>
|
|
131
|
+
</div>
|
|
132
|
+
<div class="pf-v5-c-page__header-tools">header-tools</div>
|
|
133
|
+
</header>
|
|
134
|
+
<div class="pf-v5-c-page__sidebar">
|
|
135
|
+
<div class="pf-v5-c-page__sidebar-body">Navigation</div>
|
|
136
|
+
</div>
|
|
137
|
+
<main class="pf-v5-c-page__main" tabindex="-1">
|
|
138
|
+
<section class="pf-v5-c-page__main-section">
|
|
139
|
+
This
|
|
140
|
+
<code>.pf-v5-c-page__main-section</code> has default padding.
|
|
141
|
+
</section>
|
|
142
|
+
<section class="pf-v5-c-page__main-section pf-m-no-padding pf-m-light">
|
|
143
|
+
This
|
|
144
|
+
<code>.pf-v5-c-page__main-section</code> uses
|
|
145
|
+
<code>.pf-m-no-padding</code> to remove all padding.
|
|
146
|
+
</section>
|
|
147
|
+
<section
|
|
148
|
+
class="pf-v5-c-page__main-section pf-m-no-padding pf-m-padding-on-md"
|
|
149
|
+
>
|
|
150
|
+
This
|
|
151
|
+
<code>.pf-v5-c-page__main-section</code> uses
|
|
152
|
+
<code>.pf-m-no-padding .pf-m-padding-on-md</code> to remove padding up to the
|
|
153
|
+
<code>md</code> breakpoint.
|
|
154
|
+
</section>
|
|
155
|
+
</main>
|
|
156
|
+
</div>
|
|
157
|
+
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
### Main section variations
|
|
161
|
+
|
|
162
|
+
```html
|
|
163
|
+
<div class="pf-v5-c-page">
|
|
164
|
+
<header class="pf-v5-c-page__header">
|
|
165
|
+
<div class="pf-v5-c-page__header-brand">
|
|
166
|
+
<div class="pf-v5-c-page__header-brand-toggle">toggle</div>
|
|
167
|
+
<a href="#" class="pf-v5-c-page__header-brand-link">Logo</a>
|
|
168
|
+
</div>
|
|
169
|
+
<div class="pf-v5-c-page__header-tools">header-tools</div>
|
|
170
|
+
</header>
|
|
171
|
+
<div class="pf-v5-c-page__sidebar">
|
|
172
|
+
<div class="pf-v5-c-page__sidebar-body">Navigation</div>
|
|
173
|
+
</div>
|
|
174
|
+
<main class="pf-v5-c-page__main" tabindex="-1">
|
|
175
|
+
<section class="pf-v5-c-page__main-subnav">
|
|
176
|
+
<code>.pf-v5-c-page__main-subnav</code> for horizontal subnav navigation
|
|
177
|
+
</section>
|
|
178
|
+
<section class="pf-v5-c-page__main-nav">
|
|
179
|
+
<code>.pf-v5-c-page__main-nav</code> for tertiary navigation
|
|
180
|
+
</section>
|
|
181
|
+
<section class="pf-v5-c-page__main-tabs">
|
|
182
|
+
<code>.pf-v5-c-page__main-tabs</code> for tabs
|
|
183
|
+
</section>
|
|
184
|
+
<div class="pf-v5-c-page__main-group">
|
|
185
|
+
<code>.pf-v5-c-page__main-group</code> for a group of page sections
|
|
186
|
+
</div>
|
|
187
|
+
<section class="pf-v5-c-page__main-breadcrumb">
|
|
188
|
+
<code>.pf-v5-c-page__main-breadcrumb</code> for breadcrumbs
|
|
189
|
+
</section>
|
|
190
|
+
<section class="pf-v5-c-page__main-section">
|
|
191
|
+
<code>.pf-v5-c-page__main-section</code> for main sections
|
|
192
|
+
</section>
|
|
193
|
+
<section class="pf-v5-c-page__main-wizard">
|
|
194
|
+
<code>.pf-v5-c-page__main-wizard</code> for wizards
|
|
195
|
+
</section>
|
|
196
|
+
</main>
|
|
197
|
+
</div>
|
|
198
|
+
|
|
199
|
+
```
|
|
200
|
+
|
|
201
|
+
### Centered section
|
|
202
|
+
|
|
203
|
+
```html
|
|
204
|
+
<div class="pf-v5-c-page">
|
|
205
|
+
<header class="pf-v5-c-page__header">
|
|
206
|
+
<div class="pf-v5-c-page__header-brand">
|
|
207
|
+
<div class="pf-v5-c-page__header-brand-toggle">toggle</div>
|
|
208
|
+
<a href="#" class="pf-v5-c-page__header-brand-link">Logo</a>
|
|
209
|
+
</div>
|
|
210
|
+
<div class="pf-v5-c-page__header-tools">header-tools</div>
|
|
211
|
+
</header>
|
|
212
|
+
<main class="pf-v5-c-page__main" tabindex="-1">
|
|
213
|
+
<section
|
|
214
|
+
class="pf-v5-c-page__main-section pf-m-limit-width pf-m-align-center"
|
|
215
|
+
>
|
|
216
|
+
<div class="pf-v5-c-page__main-body">
|
|
217
|
+
<div class="pf-v5-c-card">
|
|
218
|
+
<div class="pf-v5-c-card__body">
|
|
219
|
+
When a width limited page section is wider than the value of
|
|
220
|
+
<code>--pf-v5-c-page--section--m-limit-width--MaxWidth</code>, the section will be centered in the main section.
|
|
221
|
+
<br />
|
|
222
|
+
<br />The content in this example is placed in a card to better illustrate how the section behaves when it is centered. A card is not required to center a page section.
|
|
223
|
+
</div>
|
|
224
|
+
</div>
|
|
225
|
+
</div>
|
|
226
|
+
</section>
|
|
227
|
+
</main>
|
|
228
|
+
</div>
|
|
229
|
+
|
|
230
|
+
```
|
|
231
|
+
|
|
232
|
+
## Documentation
|
|
233
|
+
|
|
234
|
+
### Overview
|
|
235
|
+
|
|
236
|
+
The page header component is a deprecated approach to building a header on the page component. The recommended approach uses the masthead component instead.
|
|
237
|
+
|
|
238
|
+
### Accessibility
|
|
239
|
+
|
|
240
|
+
| Attribute | Applied to | Outcome |
|
|
241
|
+
| -- | -- | -- |
|
|
242
|
+
| `role="banner"` | `.pf-v5-c-page__header` | Identifies the element that serves as the banner region. |
|
|
243
|
+
| `aria-expanded="true/false"` | `.pf-v5-c-page__header-brand-toggle > .pf-v5-c-button` | Indicates that the expandable content is visible and the current state of the contents. **Required** |
|
|
244
|
+
| `aria-controls="[id of nav]"` | `.pf-v5-c-page__header-brand-toggle > .pf-v5-c-button` | Identifies the element controlled by the toggle. **Required**
|
|
245
|
+
|
|
246
|
+
### Usage
|
|
247
|
+
|
|
248
|
+
| Class | Applied to | Outcome |
|
|
249
|
+
| -- | -- | -- |
|
|
250
|
+
| `.pf-v5-c-page__header` | `<header>` | Declares the page header. |
|
|
251
|
+
| `.pf-v5-c-page__header-brand` | `<div>` | Creates a header container to nest the brand component. |
|
|
252
|
+
| `.pf-v5-c-page__header-brand-toggle` | `<div>` | Creates a container to nest the sidebar toggle. |
|
|
253
|
+
| `.pf-v5-c-page__header-brand-link` | `<a>`, `<span>` | Creates a link for the brand logo. Use a `<span>` if there is no link. |
|
|
254
|
+
| `.pf-v5-c-page__header-selector` | `<div>` | Creates a header container to nest the context selector component. |
|
|
255
|
+
| `.pf-v5-c-page__header-nav` | `<div>` | Creates a container to nest the navigation component in the header. |
|
|
256
|
+
| `.pf-v5-c-page__header-tools` | `<div>` | Creates a container to nest the icons and menus in header. |
|
|
257
|
+
| `.pf-v5-c-page__header-tools-group` | `<div>` | Creates a container for grouping sets of icons and menus in header. |
|
|
258
|
+
| `.pf-v5-c-page__header-tools-item` | `<div>` | Creates a container for an item in a header tools group. |
|
|
259
|
+
| `.pf-m-selected` | `.pf-v5-c-page__header-tools-item` | Modifies a header tools item to indicate that the button inside is in the selected state. |
|
|
260
|
+
| `.pf-m-hidden{-on-[breakpoint]}` | `.pf-v5-c-page__header-tools-group`, `.pf-v5-c-page__header-tools-item` | Hides a header tools group or item at an optional breakpoint, or hides it at all [breakpoints](/developer-resources/global-css-variables#breakpoint-variables-and-class-suffixes) with `.pf-m-hidden`. |
|
|
261
|
+
| `.pf-m-visible{-on-[breakpoint]}` | `.pf-v5-c-page__header-tools-group`, `.pf-v5-c-page__header-tools-item` | Shows a header tools group or item at an optional [breakpoint](/developer-resources/global-css-variables#breakpoint-variables-and-class-suffixes). |
|