@patternfly/patternfly 4.219.1 → 4.220.0
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/RELEASE-NOTES.md +18 -0
- package/components/Tabs/tabs.css +31 -21
- package/components/Tabs/tabs.scss +35 -21
- package/docs/components/CalendarMonth/examples/CalendarMonth.md +0 -1
- package/docs/components/CodeEditor/examples/CodeEditor.md +0 -1
- package/docs/components/DualListSelector/examples/DualListSelector.md +0 -1
- package/docs/components/FormControl/examples/FormControl.md +1 -1
- package/docs/components/LabelGroup/examples/LabelGroup.md +3 -4
- package/docs/components/Masthead/examples/masthead.md +0 -1
- package/docs/components/MenuToggle/examples/MenuToggle.md +0 -1
- package/docs/components/MultipleFileUpload/examples/MultipleFileUpload.md +0 -1
- package/docs/components/NotificationDrawer/examples/NotificationDrawer.md +0 -1
- package/docs/components/Page/examples/Page.css +11 -0
- package/docs/components/Page/examples/Page.md +72 -39
- package/docs/components/Panel/examples/Panel.md +0 -1
- package/docs/components/Select/examples/Select.md +2 -2
- package/docs/components/Slider/examples/Slider.md +0 -1
- package/docs/components/Tabs/examples/Tabs.md +4620 -1443
- package/docs/components/TreeView/examples/TreeView.md +0 -1
- package/docs/demos/Masthead/examples/Masthead.md +0 -1
- package/package.json +4 -4
- package/patternfly-no-reset.css +31 -21
- package/patternfly.css +31 -21
- package/patternfly.min.css +1 -1
- package/patternfly.min.css.map +1 -1
package/RELEASE-NOTES.md
CHANGED
|
@@ -3,6 +3,24 @@ id: Release notes
|
|
|
3
3
|
section: developer-resources
|
|
4
4
|
releaseNoteTOC: true
|
|
5
5
|
---
|
|
6
|
+
## 2022.14 release notes (2022-10-28)
|
|
7
|
+
Packages released:
|
|
8
|
+
- [@patternfly/patternfly@v4.219.2](https://www.npmjs.com/package/@patternfly/patternfly/v/4.219.2)
|
|
9
|
+
|
|
10
|
+
### Components
|
|
11
|
+
- **Context selector:** Updated static props ([#5191](https://github.com/patternfly/patternfly/pull/5191))
|
|
12
|
+
- **Dropdown:** Disabled top positioning when using static variation ([#5189](https://github.com/patternfly/patternfly/pull/5189))
|
|
13
|
+
- **Progress:** Added helper text ([#5161](https://github.com/patternfly/patternfly/pull/5161))
|
|
14
|
+
|
|
15
|
+
### Other
|
|
16
|
+
- **Docs:**
|
|
17
|
+
- Removed a11y section from example pages ([#5167](https://github.com/patternfly/patternfly/pull/5167))
|
|
18
|
+
- Promoted 2022.14 beta candidates ([#5179](https://github.com/patternfly/patternfly/pull/5179))
|
|
19
|
+
- Updated page component example content, made text readable ([#5187](https://github.com/patternfly/patternfly/pull/5187))
|
|
20
|
+
- **Icons:** Added open-drawer-right pficon ([#5160](https://github.com/patternfly/patternfly/pull/5160))
|
|
21
|
+
- **Build:** Created new extensions github workflow ([#5186](https://github.com/patternfly/patternfly/pull/5186))
|
|
22
|
+
|
|
23
|
+
|
|
6
24
|
## 2022.13 release notes (2022-10-06)
|
|
7
25
|
Packages released:
|
|
8
26
|
- [@patternfly/patternfly@v4.217.1](https://www.npmjs.com/package/@patternfly/patternfly/v/4.217.1)
|
package/components/Tabs/tabs.css
CHANGED
|
@@ -26,7 +26,6 @@
|
|
|
26
26
|
--pf-c-tabs__list--Display: flex;
|
|
27
27
|
--pf-c-tabs__list--Visibility: visible;
|
|
28
28
|
--pf-c-tabs__item--m-action--before--ZIndex: var(--pf-global--ZIndex--xs);
|
|
29
|
-
--pf-c-tabs__item--m-action__link--PaddingRight: var(--pf-global--spacer--sm);
|
|
30
29
|
--pf-c-tabs__link--Color: var(--pf-global--Color--200);
|
|
31
30
|
--pf-c-tabs__link--FontSize: var(--pf-global--FontSize--md);
|
|
32
31
|
--pf-c-tabs__link--BackgroundColor: transparent;
|
|
@@ -43,8 +42,9 @@
|
|
|
43
42
|
--pf-c-tabs--m-vertical__link--PaddingBottom: var(--pf-global--spacer--md);
|
|
44
43
|
--pf-c-tabs--m-box__link--BackgroundColor: var(--pf-global--BackgroundColor--200);
|
|
45
44
|
--pf-c-tabs--m-box__link--disabled--BackgroundColor: var(--pf-global--disabled-color--200);
|
|
46
|
-
--pf-c-tabs--m-box__item-
|
|
45
|
+
--pf-c-tabs--m-box__item-action--c-button--disabled--BackgroundColor: var(--pf-global--palette--black-400);
|
|
47
46
|
--pf-c-tabs--m-secondary__link--FontSize: var(--pf-global--FontSize--sm);
|
|
47
|
+
--pf-c-tabs__item--m-action__link--PaddingRight: var(--pf-global--spacer--xs);
|
|
48
48
|
--pf-c-tabs__link--before--border-color--base: var(--pf-global--BorderColor--100);
|
|
49
49
|
--pf-c-tabs__link--before--border-width--base: var(--pf-global--BorderWidth--sm);
|
|
50
50
|
--pf-c-tabs__link--before--BorderTopColor: var(--pf-c-tabs__link--before--border-color--base);
|
|
@@ -108,13 +108,16 @@
|
|
|
108
108
|
--pf-c-tabs__toggle-button--MarginLeft: calc(-1 * var(--pf-global--spacer--md));
|
|
109
109
|
--pf-c-tabs--m-expanded__toggle-icon--Color: var(--pf-global--Color--100);
|
|
110
110
|
--pf-c-tabs--m-expanded__toggle-icon--Rotate: 90deg;
|
|
111
|
-
--pf-c-tabs__item-
|
|
112
|
-
--pf-c-tabs--m-secondary__item-
|
|
113
|
-
--pf-c-tabs__item-
|
|
114
|
-
--pf-c-tabs__item-
|
|
115
|
-
--pf-c-tabs__item-
|
|
116
|
-
--pf-c-tabs__item-
|
|
117
|
-
--pf-c-tabs__item-
|
|
111
|
+
--pf-c-tabs__item-action--c-button--FontSize: var(--pf-global--FontSize--xs);
|
|
112
|
+
--pf-c-tabs--m-secondary__item-action--c-button--FontSize: var(--pf-global--icon--FontSize--sm);
|
|
113
|
+
--pf-c-tabs__item-action--c-button--PaddingTop: var(--pf-global--spacer--sm);
|
|
114
|
+
--pf-c-tabs__item-action--c-button--PaddingRight: var(--pf-global--spacer--sm);
|
|
115
|
+
--pf-c-tabs__item-action--c-button--PaddingBottom: var(--pf-global--spacer--sm);
|
|
116
|
+
--pf-c-tabs__item-action--c-button--PaddingLeft: var(--pf-global--spacer--sm);
|
|
117
|
+
--pf-c-tabs__item-action--last-child--c-button--PaddingRight: var(--pf-global--spacer--md);
|
|
118
|
+
--pf-c-tabs__item-action--c-button--OutlineOffset: -0.1875rem;
|
|
119
|
+
--pf-c-tabs__item-action-icon--MarginTop: 0.125rem;
|
|
120
|
+
--pf-c-tabs__item-action--m-help--c-button--PaddingLeft: var(--pf-global--spacer--xs);
|
|
118
121
|
--pf-c-tabs__add--before--BorderColor: var(--pf-c-tabs__link--before--border-color--base);
|
|
119
122
|
--pf-c-tabs__add--before--BorderLeftWidth: var(--pf-c-tabs__link--before--border-width--base);
|
|
120
123
|
--pf-c-tabs__add--c-button--FontSize: var(--pf-global--FontSize--sm);
|
|
@@ -229,8 +232,8 @@
|
|
|
229
232
|
--pf-c-tabs__item--m-current__link--BackgroundColor: var(--pf-c-tabs--m-color-scheme--light-300__item--m-current__link--BackgroundColor);
|
|
230
233
|
--pf-c-tabs__link--disabled--BackgroundColor: var(--pf-c-tabs--m-color-scheme--light-300__link--disabled--BackgroundColor);
|
|
231
234
|
}
|
|
232
|
-
.pf-c-tabs.pf-m-box .pf-c-tabs__item-
|
|
233
|
-
--pf-c-button--m-plain--disabled--Color: var(--pf-c-tabs--m-box__item-
|
|
235
|
+
.pf-c-tabs.pf-m-box .pf-c-tabs__item-action .pf-c-button {
|
|
236
|
+
--pf-c-button--m-plain--disabled--Color: var(--pf-c-tabs--m-box__item-action--c-button--disabled--BackgroundColor);
|
|
234
237
|
}
|
|
235
238
|
.pf-c-tabs.pf-m-vertical {
|
|
236
239
|
--pf-c-tabs--Width: var(--pf-c-tabs--m-vertical--Width);
|
|
@@ -404,7 +407,7 @@
|
|
|
404
407
|
}
|
|
405
408
|
.pf-c-tabs.pf-m-secondary {
|
|
406
409
|
--pf-c-tabs__link--FontSize: var(--pf-c-tabs--m-secondary__link--FontSize);
|
|
407
|
-
--pf-c-tabs__item-
|
|
410
|
+
--pf-c-tabs__item-action--c-button--FontSize: var(--pf-c-tabs--m-secondary__item-action--c-button--FontSize);
|
|
408
411
|
--pf-c-tabs__add--c-button--FontSize: var(--pf-c-tabs--m-secondary__add--c-button--FontSize);
|
|
409
412
|
}
|
|
410
413
|
.pf-c-tabs.pf-m-page-insets {
|
|
@@ -608,20 +611,27 @@
|
|
|
608
611
|
transform: rotate(var(--pf-c-tabs__link-toggle-icon--Rotate));
|
|
609
612
|
}
|
|
610
613
|
|
|
611
|
-
.pf-c-tabs__item-
|
|
614
|
+
.pf-c-tabs__item-action {
|
|
612
615
|
display: flex;
|
|
613
616
|
}
|
|
614
|
-
.pf-c-tabs__item-
|
|
615
|
-
--pf-c-button--FontSize: var(--pf-c-tabs__item-
|
|
616
|
-
--pf-c-button--PaddingTop: var(--pf-c-tabs__item-
|
|
617
|
-
--pf-c-button--
|
|
618
|
-
--pf-c-button--
|
|
619
|
-
|
|
617
|
+
.pf-c-tabs__item-action .pf-c-button {
|
|
618
|
+
--pf-c-button--FontSize: var(--pf-c-tabs__item-action--c-button--FontSize);
|
|
619
|
+
--pf-c-button--PaddingTop: var(--pf-c-tabs__item-action--c-button--PaddingTop);
|
|
620
|
+
--pf-c-button--PaddingRight: var(--pf-c-tabs__item-action--c-button--PaddingRight);
|
|
621
|
+
--pf-c-button--PaddingBottom: var(--pf-c-tabs__item-action--c-button--PaddingBottom);
|
|
622
|
+
--pf-c-button--PaddingLeft: var(--pf-c-tabs__item-action--c-button--PaddingLeft);
|
|
623
|
+
outline-offset: var(--pf-c-tabs__item-action--c-button--OutlineOffset);
|
|
624
|
+
}
|
|
625
|
+
.pf-c-tabs__item-action.pf-m-help {
|
|
626
|
+
--pf-c-tabs__item-action--c-button--PaddingLeft: var(--pf-c-tabs__item-action--m-help--c-button--PaddingLeft);
|
|
627
|
+
}
|
|
628
|
+
.pf-c-tabs__item-action:last-child {
|
|
629
|
+
--pf-c-tabs__item-action--c-button--PaddingRight: var(--pf-c-tabs__item-action--last-child--c-button--PaddingRight);
|
|
620
630
|
}
|
|
621
631
|
|
|
622
|
-
.pf-c-tabs__item-
|
|
632
|
+
.pf-c-tabs__item-action-icon {
|
|
623
633
|
display: inline-block;
|
|
624
|
-
margin-top: var(--pf-c-tabs__item-
|
|
634
|
+
margin-top: var(--pf-c-tabs__item-action-icon--MarginTop);
|
|
625
635
|
}
|
|
626
636
|
|
|
627
637
|
.pf-c-tabs__scroll-button {
|
|
@@ -41,7 +41,6 @@ $pf-c-tabs--spacer-map: build-spacer-map("none", "sm", "md", "lg", "xl", "2xl");
|
|
|
41
41
|
|
|
42
42
|
// Item
|
|
43
43
|
--pf-c-tabs__item--m-action--before--ZIndex: var(--pf-global--ZIndex--xs);
|
|
44
|
-
--pf-c-tabs__item--m-action__link--PaddingRight: var(--pf-global--spacer--sm);
|
|
45
44
|
|
|
46
45
|
// Tab link
|
|
47
46
|
--pf-c-tabs__link--Color: var(--pf-global--Color--200);
|
|
@@ -60,8 +59,9 @@ $pf-c-tabs--spacer-map: build-spacer-map("none", "sm", "md", "lg", "xl", "2xl");
|
|
|
60
59
|
--pf-c-tabs--m-vertical__link--PaddingBottom: var(--pf-global--spacer--md);
|
|
61
60
|
--pf-c-tabs--m-box__link--BackgroundColor: var(--pf-global--BackgroundColor--200);
|
|
62
61
|
--pf-c-tabs--m-box__link--disabled--BackgroundColor: var(--pf-global--disabled-color--200);
|
|
63
|
-
--pf-c-tabs--m-box__item-
|
|
62
|
+
--pf-c-tabs--m-box__item-action--c-button--disabled--BackgroundColor: var(--pf-global--palette--black-400);
|
|
64
63
|
--pf-c-tabs--m-secondary__link--FontSize: var(--pf-global--FontSize--sm);
|
|
64
|
+
--pf-c-tabs__item--m-action__link--PaddingRight: var(--pf-global--spacer--xs);
|
|
65
65
|
|
|
66
66
|
// Link before
|
|
67
67
|
--pf-c-tabs__link--before--border-color--base: var(--pf-global--BorderColor--100);
|
|
@@ -138,14 +138,19 @@ $pf-c-tabs--spacer-map: build-spacer-map("none", "sm", "md", "lg", "xl", "2xl");
|
|
|
138
138
|
--pf-c-tabs--m-expanded__toggle-icon--Color: var(--pf-global--Color--100);
|
|
139
139
|
--pf-c-tabs--m-expanded__toggle-icon--Rotate: 90deg;
|
|
140
140
|
|
|
141
|
-
//
|
|
142
|
-
--pf-c-tabs__item-
|
|
143
|
-
--pf-c-tabs--m-secondary__item-
|
|
144
|
-
--pf-c-tabs__item-
|
|
145
|
-
--pf-c-tabs__item-
|
|
146
|
-
--pf-c-tabs__item-
|
|
147
|
-
--pf-c-tabs__item-
|
|
148
|
-
--pf-c-tabs__item-
|
|
141
|
+
// Item action
|
|
142
|
+
--pf-c-tabs__item-action--c-button--FontSize: var(--pf-global--FontSize--xs);
|
|
143
|
+
--pf-c-tabs--m-secondary__item-action--c-button--FontSize: var(--pf-global--icon--FontSize--sm);
|
|
144
|
+
--pf-c-tabs__item-action--c-button--PaddingTop: var(--pf-global--spacer--sm);
|
|
145
|
+
--pf-c-tabs__item-action--c-button--PaddingRight: var(--pf-global--spacer--sm);
|
|
146
|
+
--pf-c-tabs__item-action--c-button--PaddingBottom: var(--pf-global--spacer--sm);
|
|
147
|
+
--pf-c-tabs__item-action--c-button--PaddingLeft: var(--pf-global--spacer--sm);
|
|
148
|
+
--pf-c-tabs__item-action--last-child--c-button--PaddingRight: var(--pf-global--spacer--md);
|
|
149
|
+
--pf-c-tabs__item-action--c-button--OutlineOffset: #{pf-size-prem(-3px)};
|
|
150
|
+
--pf-c-tabs__item-action-icon--MarginTop: #{pf-size-prem(2px)};
|
|
151
|
+
|
|
152
|
+
// Item help
|
|
153
|
+
--pf-c-tabs__item-action--m-help--c-button--PaddingLeft: var(--pf-global--spacer--xs);
|
|
149
154
|
|
|
150
155
|
// Add button
|
|
151
156
|
--pf-c-tabs__add--before--BorderColor: var(--pf-c-tabs__link--before--border-color--base);
|
|
@@ -309,8 +314,8 @@ $pf-c-tabs--spacer-map: build-spacer-map("none", "sm", "md", "lg", "xl", "2xl");
|
|
|
309
314
|
--pf-c-tabs__link--disabled--BackgroundColor: var(--pf-c-tabs--m-color-scheme--light-300__link--disabled--BackgroundColor);
|
|
310
315
|
}
|
|
311
316
|
|
|
312
|
-
.pf-c-tabs__item-
|
|
313
|
-
--pf-c-button--m-plain--disabled--Color: var(--pf-c-tabs--m-box__item-
|
|
317
|
+
.pf-c-tabs__item-action .pf-c-button {
|
|
318
|
+
--pf-c-button--m-plain--disabled--Color: var(--pf-c-tabs--m-box__item-action--c-button--disabled--BackgroundColor);
|
|
314
319
|
}
|
|
315
320
|
}
|
|
316
321
|
|
|
@@ -455,7 +460,7 @@ $pf-c-tabs--spacer-map: build-spacer-map("none", "sm", "md", "lg", "xl", "2xl");
|
|
|
455
460
|
|
|
456
461
|
&.pf-m-secondary {
|
|
457
462
|
--pf-c-tabs__link--FontSize: var(--pf-c-tabs--m-secondary__link--FontSize);
|
|
458
|
-
--pf-c-tabs__item-
|
|
463
|
+
--pf-c-tabs__item-action--c-button--FontSize: var(--pf-c-tabs--m-secondary__item-action--c-button--FontSize);
|
|
459
464
|
--pf-c-tabs__add--c-button--FontSize: var(--pf-c-tabs--m-secondary__add--c-button--FontSize);
|
|
460
465
|
}
|
|
461
466
|
|
|
@@ -704,22 +709,31 @@ $pf-c-tabs--spacer-map: build-spacer-map("none", "sm", "md", "lg", "xl", "2xl");
|
|
|
704
709
|
transform: rotate(var(--pf-c-tabs__link-toggle-icon--Rotate));
|
|
705
710
|
}
|
|
706
711
|
|
|
707
|
-
.pf-c-tabs__item-
|
|
712
|
+
.pf-c-tabs__item-action {
|
|
708
713
|
display: flex;
|
|
709
714
|
|
|
710
715
|
.pf-c-button {
|
|
711
|
-
--pf-c-button--FontSize: var(--pf-c-tabs__item-
|
|
712
|
-
--pf-c-button--PaddingTop: var(--pf-c-tabs__item-
|
|
713
|
-
--pf-c-button--
|
|
714
|
-
--pf-c-button--
|
|
716
|
+
--pf-c-button--FontSize: var(--pf-c-tabs__item-action--c-button--FontSize);
|
|
717
|
+
--pf-c-button--PaddingTop: var(--pf-c-tabs__item-action--c-button--PaddingTop);
|
|
718
|
+
--pf-c-button--PaddingRight: var(--pf-c-tabs__item-action--c-button--PaddingRight);
|
|
719
|
+
--pf-c-button--PaddingBottom: var(--pf-c-tabs__item-action--c-button--PaddingBottom);
|
|
720
|
+
--pf-c-button--PaddingLeft: var(--pf-c-tabs__item-action--c-button--PaddingLeft);
|
|
721
|
+
|
|
722
|
+
outline-offset: var(--pf-c-tabs__item-action--c-button--OutlineOffset);
|
|
723
|
+
}
|
|
724
|
+
|
|
725
|
+
&.pf-m-help {
|
|
726
|
+
--pf-c-tabs__item-action--c-button--PaddingLeft: var(--pf-c-tabs__item-action--m-help--c-button--PaddingLeft);
|
|
727
|
+
}
|
|
715
728
|
|
|
716
|
-
|
|
729
|
+
&:last-child {
|
|
730
|
+
--pf-c-tabs__item-action--c-button--PaddingRight: var(--pf-c-tabs__item-action--last-child--c-button--PaddingRight);
|
|
717
731
|
}
|
|
718
732
|
}
|
|
719
733
|
|
|
720
|
-
.pf-c-tabs__item-
|
|
734
|
+
.pf-c-tabs__item-action-icon {
|
|
721
735
|
display: inline-block;
|
|
722
|
-
margin-top: var(--pf-c-tabs__item-
|
|
736
|
+
margin-top: var(--pf-c-tabs__item-action-icon--MarginTop);
|
|
723
737
|
}
|
|
724
738
|
|
|
725
739
|
// Scroll buttons
|
|
@@ -348,7 +348,7 @@ cssPrefix: pf-c-form-control
|
|
|
348
348
|
|
|
349
349
|
**Note:** The icons for the success, invalid, calendar, etc varations in form control elemements are applied as background images to the form element. By default, the image URLs for these icons are data URIs. However, there may be cases where data URIs are not ideal, such as in an application with a content security policy that disallows data URIs for security reasons. The `.pf-m-icon-sprite` variation changes the icon source to an external SVG file that serves as a sprite for all of the supported icons.
|
|
350
350
|
|
|
351
|
-
```html
|
|
351
|
+
```html
|
|
352
352
|
<input
|
|
353
353
|
class="pf-c-form-control pf-m-success pf-m-icon-sprite"
|
|
354
354
|
type="text"
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
---
|
|
2
2
|
id: 'Label group'
|
|
3
|
-
beta: true
|
|
4
3
|
section: components
|
|
5
4
|
cssPrefix: pf-c-label-group
|
|
6
5
|
---## Examples
|
|
@@ -611,7 +610,7 @@ In addition to the JavaScript management of [editable labels](/components/label#
|
|
|
611
610
|
|
|
612
611
|
### Editable labels, dynamic label group
|
|
613
612
|
|
|
614
|
-
```html
|
|
613
|
+
```html isBeta
|
|
615
614
|
<div class="pf-c-label-group pf-m-editable">
|
|
616
615
|
<div class="pf-c-label-group__main">
|
|
617
616
|
<ul class="pf-c-label-group__list" role="list" aria-label="Group of labels">
|
|
@@ -694,7 +693,7 @@ In addition to the JavaScript management of [editable labels](/components/label#
|
|
|
694
693
|
|
|
695
694
|
### Editable labels, label active, dynamic label group
|
|
696
695
|
|
|
697
|
-
```html
|
|
696
|
+
```html isBeta
|
|
698
697
|
<div class="pf-c-label-group pf-m-editable">
|
|
699
698
|
<div class="pf-c-label-group__main">
|
|
700
699
|
<ul class="pf-c-label-group__list" role="list" aria-label="Group of labels">
|
|
@@ -842,7 +841,7 @@ In addition to the JavaScript management of [editable labels](/components/label#
|
|
|
842
841
|
|
|
843
842
|
### Mixed labels (static / editable), dynamic label group
|
|
844
843
|
|
|
845
|
-
```html
|
|
844
|
+
```html isBeta
|
|
846
845
|
<div class="pf-c-label-group pf-m-editable">
|
|
847
846
|
<div class="pf-c-label-group__main">
|
|
848
847
|
<ul class="pf-c-label-group__list" role="list" aria-label="Group of labels">
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
.ws-core-c-page :is(.pf-c-page__sidebar, .pf-c-page__main-subnav) {
|
|
2
|
+
color: var(--pf-global--Color--light-100);
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.ws-core-c-page .pf-c-page__main-section.pf-m-dark-200 {
|
|
6
|
+
color: var(--pf-global--Color--dark-100);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
#ws-core-c-page-with-or-without-fill .ws-preview-html {
|
|
10
|
+
height: 500px;
|
|
11
|
+
}
|
|
@@ -3,7 +3,9 @@ id: Page
|
|
|
3
3
|
section: components
|
|
4
4
|
cssPrefix: pf-c-page
|
|
5
5
|
wrapperTag: div
|
|
6
|
-
|
|
6
|
+
---import './Page.css'
|
|
7
|
+
|
|
8
|
+
## Examples
|
|
7
9
|
|
|
8
10
|
### Vertical nav
|
|
9
11
|
|
|
@@ -17,13 +19,28 @@ wrapperTag: div
|
|
|
17
19
|
<div class="pf-c-page__header-tools">header-tools</div>
|
|
18
20
|
</header>
|
|
19
21
|
<div class="pf-c-page__sidebar">
|
|
20
|
-
<div class="pf-c-page__sidebar-body">
|
|
22
|
+
<div class="pf-c-page__sidebar-body">Navigation</div>
|
|
21
23
|
</div>
|
|
22
24
|
<main class="pf-c-page__main" tabindex="-1">
|
|
23
|
-
<section class="pf-c-page__main-section pf-m-dark-100"
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
<section class="pf-c-page__main-section pf-m-dark-100">
|
|
26
|
+
This
|
|
27
|
+
<code>.pf-c-page__main-section</code> uses
|
|
28
|
+
<code>.pf-m-dark-100</code>.
|
|
29
|
+
</section>
|
|
30
|
+
<section class="pf-c-page__main-section pf-m-dark-200">
|
|
31
|
+
This
|
|
32
|
+
<code>.pf-c-page__main-section</code> uses
|
|
33
|
+
<code>.pf-m-dark-200</code>.
|
|
34
|
+
</section>
|
|
35
|
+
<section class="pf-c-page__main-section pf-m-light">
|
|
36
|
+
This
|
|
37
|
+
<code>.pf-c-page__main-section</code> uses
|
|
38
|
+
<code>.pf-m-light</code>.
|
|
39
|
+
</section>
|
|
40
|
+
<section class="pf-c-page__main-section">
|
|
41
|
+
This is a default
|
|
42
|
+
<code>.pf-c-page__main-section</code>.
|
|
43
|
+
</section>
|
|
27
44
|
</main>
|
|
28
45
|
</div>
|
|
29
46
|
|
|
@@ -37,7 +54,7 @@ wrapperTag: div
|
|
|
37
54
|
<div class="pf-c-page__header-brand">
|
|
38
55
|
<a href="#" class="pf-c-page__header-brand-link">Logo</a>
|
|
39
56
|
</div>
|
|
40
|
-
<div class="pf-c-page__header-nav">
|
|
57
|
+
<div class="pf-c-page__header-nav">Navigation</div>
|
|
41
58
|
<div class="pf-c-page__header-tools">header-tools</div>
|
|
42
59
|
</header>
|
|
43
60
|
<main class="pf-c-page__main" tabindex="-1">
|
|
@@ -58,17 +75,19 @@ wrapperTag: div
|
|
|
58
75
|
<div class="pf-c-page__header-brand">
|
|
59
76
|
<a href="#" class="pf-c-page__header-brand-link">Logo</a>
|
|
60
77
|
</div>
|
|
61
|
-
<div class="pf-c-page__header-nav">
|
|
78
|
+
<div class="pf-c-page__header-nav">Navigation</div>
|
|
62
79
|
<div class="pf-c-page__header-tools">header-tools</div>
|
|
63
80
|
</header>
|
|
64
81
|
<main class="pf-c-page__main" tabindex="-1">
|
|
65
|
-
<section class="pf-c-page__main-section pf-m-light"
|
|
66
|
-
<section
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
82
|
+
<section class="pf-c-page__main-section pf-m-light">A regular page section.</section>
|
|
83
|
+
<section class="pf-c-page__main-section pf-m-fill">
|
|
84
|
+
This section uses
|
|
85
|
+
<code>.pf-m-fill</code> to fill the available space.
|
|
86
|
+
</section>
|
|
87
|
+
<section class="pf-c-page__main-section pf-m-light pf-m-no-fill">
|
|
88
|
+
This section uses
|
|
89
|
+
<code>.pf-m-no-fill</code> to not fill the available space.
|
|
90
|
+
</section>
|
|
72
91
|
</main>
|
|
73
92
|
</div>
|
|
74
93
|
|
|
@@ -86,18 +105,24 @@ wrapperTag: div
|
|
|
86
105
|
<div class="pf-c-page__header-tools">header-tools</div>
|
|
87
106
|
</header>
|
|
88
107
|
<div class="pf-c-page__sidebar">
|
|
89
|
-
<div class="pf-c-page__sidebar-body">
|
|
108
|
+
<div class="pf-c-page__sidebar-body">Navigation</div>
|
|
90
109
|
</div>
|
|
91
110
|
<main class="pf-c-page__main" tabindex="-1">
|
|
92
|
-
<section
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
111
|
+
<section class="pf-c-page__main-section">
|
|
112
|
+
This
|
|
113
|
+
<code>.pf-c-page__main-section</code> has default padding.
|
|
114
|
+
</section>
|
|
115
|
+
<section class="pf-c-page__main-section pf-m-no-padding pf-m-light">
|
|
116
|
+
This
|
|
117
|
+
<code>.pf-c-page__main-section</code> uses
|
|
118
|
+
<code>.pf-m-no-padding</code> to remove all padding.
|
|
119
|
+
</section>
|
|
120
|
+
<section class="pf-c-page__main-section pf-m-no-padding pf-m-padding-on-md">
|
|
121
|
+
This
|
|
122
|
+
<code>.pf-c-page__main-section</code> uses
|
|
123
|
+
<code>.pf-m-no-padding .pf-m-padding-on-md</code> to remove padding up to the
|
|
124
|
+
<code>md</code> breakpoint.
|
|
125
|
+
</section>
|
|
101
126
|
</main>
|
|
102
127
|
</div>
|
|
103
128
|
|
|
@@ -115,22 +140,30 @@ wrapperTag: div
|
|
|
115
140
|
<div class="pf-c-page__header-tools">header-tools</div>
|
|
116
141
|
</header>
|
|
117
142
|
<div class="pf-c-page__sidebar">
|
|
118
|
-
<div class="pf-c-page__sidebar-body">
|
|
143
|
+
<div class="pf-c-page__sidebar-body">Navigation</div>
|
|
119
144
|
</div>
|
|
120
145
|
<main class="pf-c-page__main" tabindex="-1">
|
|
121
|
-
<section
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
<section
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
<section
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
<
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
146
|
+
<section class="pf-c-page__main-subnav">
|
|
147
|
+
<code>.pf-c-page__main-subnav</code> for horizontal subnav navigation
|
|
148
|
+
</section>
|
|
149
|
+
<section class="pf-c-page__main-nav">
|
|
150
|
+
<code>.pf-c-page__main-nav</code> for tertiary navigation
|
|
151
|
+
</section>
|
|
152
|
+
<section class="pf-c-page__main-tabs">
|
|
153
|
+
<code>.pf-c-page__main-tabs</code> for tabs
|
|
154
|
+
</section>
|
|
155
|
+
<div class="pf-c-page__main-group">
|
|
156
|
+
<code>.pf-c-page__main-group</code> for a group of page sections
|
|
157
|
+
</div>
|
|
158
|
+
<section class="pf-c-page__main-breadcrumb">
|
|
159
|
+
<code>.pf-c-page__main-breadcrumb</code> for breadcrumbs
|
|
160
|
+
</section>
|
|
161
|
+
<section class="pf-c-page__main-section">
|
|
162
|
+
<code>.pf-c-page__main-section</code> for main sections
|
|
163
|
+
</section>
|
|
164
|
+
<section class="pf-c-page__main-wizard">
|
|
165
|
+
<code>.pf-c-page__main-wizard</code> for wizards
|
|
166
|
+
</section>
|
|
134
167
|
</main>
|
|
135
168
|
</div>
|
|
136
169
|
|
|
@@ -2933,7 +2933,7 @@ The plain select variation should be used when you do not want a border applied
|
|
|
2933
2933
|
|
|
2934
2934
|
### View more menu item
|
|
2935
2935
|
|
|
2936
|
-
```html
|
|
2936
|
+
```html
|
|
2937
2937
|
<div class="pf-c-select pf-m-expanded">
|
|
2938
2938
|
<span id="select-single-view-more-label" hidden>Choose one</span>
|
|
2939
2939
|
|
|
@@ -3000,7 +3000,7 @@ The plain select variation should be used when you do not want a border applied
|
|
|
3000
3000
|
|
|
3001
3001
|
### Loading menu item
|
|
3002
3002
|
|
|
3003
|
-
```html
|
|
3003
|
+
```html
|
|
3004
3004
|
<div class="pf-c-select pf-m-expanded">
|
|
3005
3005
|
<span id="select-single-loading-label" hidden>Choose one</span>
|
|
3006
3006
|
|