@patternfly/patternfly 6.0.0-alpha.33 → 6.0.0-alpha.38
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/CODE_OF_CONDUCT.md +1 -2
- package/assets/images/PF-HorizontalLogo-Color.svg +29 -0
- package/assets/images/PF-HorizontalLogo-Reverse.svg +28 -0
- package/assets/images/PF-IconLogo-color.svg +17 -0
- package/base/patternfly-variables.css +2 -0
- package/base/tokens/_tokens-default.scss +2 -0
- package/components/Backdrop/backdrop.css +6 -2
- package/components/Backdrop/backdrop.scss +5 -2
- package/components/Banner/banner.css +4 -0
- package/components/Banner/banner.scss +5 -0
- package/components/Card/card.css +3 -0
- package/components/Card/card.scss +8 -0
- package/components/EmptyState/empty-state.css +57 -34
- package/components/EmptyState/empty-state.scss +63 -34
- package/components/ExpandableSection/expandable-section.css +10 -17
- package/components/ExpandableSection/expandable-section.scss +13 -20
- package/components/Form/form.css +6 -0
- package/components/Form/form.scss +4 -1
- package/components/MenuToggle/menu-toggle.css +1 -0
- package/components/MenuToggle/menu-toggle.scss +2 -0
- package/components/Popover/popover.css +0 -2
- package/components/Popover/popover.scss +2 -2
- package/components/SimpleList/simple-list.css +35 -52
- package/components/SimpleList/simple-list.scss +41 -51
- package/components/Table/table.scss +1 -0
- package/components/Tooltip/tooltip.css +0 -2
- package/components/Tooltip/tooltip.scss +3 -3
- package/components/Truncate/truncate.css +4 -0
- package/components/Truncate/truncate.scss +3 -0
- package/docs/components/Accordion/examples/Accordion.md +6 -6
- package/docs/components/Alert/examples/Alert.md +2 -2
- package/docs/components/Brand/examples/Brand.md +9 -33
- package/docs/components/Breadcrumb/examples/Breadcrumb.md +1 -1
- package/docs/components/Card/examples/Card.md +18 -20
- package/docs/components/Check/examples/Check.md +1 -0
- package/docs/components/CodeBlock/examples/CodeBlock.md +4 -4
- package/docs/components/Content/examples/Content.md +5 -5
- package/docs/components/EmptyState/examples/EmptyState.md +45 -1
- package/docs/components/ExpandableSection/examples/ExpandableSection.md +2 -4
- package/docs/components/InlineEdit/examples/InlineEdit.md +3 -1
- package/docs/components/Label/examples/Label.md +11 -11
- package/docs/components/Nav/examples/Navigation.css +18 -2
- package/docs/components/Nav/examples/Navigation.md +1 -1
- package/docs/components/Radio/examples/Radio.md +1 -1
- package/docs/components/SimpleList/examples/SimpleList.md +3 -3
- package/docs/components/Table/examples/Table.md +8 -8
- package/docs/components/Truncate/examples/Truncate.css +2 -2
- package/docs/layouts/Flex/examples/Flex.md +11 -11
- package/package.json +32 -32
- package/patternfly-base-no-globals-theme-dark-unversioned.css +2 -0
- package/patternfly-base-no-globals.css +2 -0
- package/patternfly-base-theme-dark-unversioned.css +2 -0
- package/patternfly-base.css +2 -0
- package/patternfly-no-globals.css +128 -113
- package/patternfly-theme-dark-unversioned.css +128 -113
- package/patternfly.css +128 -113
- package/patternfly.min.css +1 -1
- package/patternfly.min.css.map +1 -1
- package/components/SimpleList/themes/dark/simple-list.scss +0 -14
|
@@ -139,6 +139,7 @@ cssPrefix: pf-v5-c-card
|
|
|
139
139
|
<input
|
|
140
140
|
class="pf-v5-c-check__input"
|
|
141
141
|
type="checkbox"
|
|
142
|
+
aria-label="Standalone check"
|
|
142
143
|
id="card-action-example-1-check"
|
|
143
144
|
name="card-action-example-1-check"
|
|
144
145
|
aria-labelledby="card-action-example-1"
|
|
@@ -221,6 +222,7 @@ cssPrefix: pf-v5-c-card
|
|
|
221
222
|
<input
|
|
222
223
|
class="pf-v5-c-check__input"
|
|
223
224
|
type="checkbox"
|
|
225
|
+
aria-label="Standalone check"
|
|
224
226
|
id="card-action-example-2-check"
|
|
225
227
|
name="card-action-example-2-check"
|
|
226
228
|
aria-labelledby="card-action-example-2"
|
|
@@ -305,6 +307,7 @@ cssPrefix: pf-v5-c-card
|
|
|
305
307
|
<input
|
|
306
308
|
class="pf-v5-c-check__input"
|
|
307
309
|
type="checkbox"
|
|
310
|
+
aria-label="Standalone check"
|
|
308
311
|
id="card-action-example-3-check"
|
|
309
312
|
name="card-action-example-3-check"
|
|
310
313
|
aria-labelledby="card-action-example-3"
|
|
@@ -508,7 +511,7 @@ cssPrefix: pf-v5-c-card
|
|
|
508
511
|
<div class="pf-v5-c-card__header">
|
|
509
512
|
<div class="pf-v5-c-card__actions pf-m-no-offset">
|
|
510
513
|
<div class="pf-v5-c-card__selectable-actions">
|
|
511
|
-
<div class="pf-v5-c-check
|
|
514
|
+
<div class="pf-v5-c-check">
|
|
512
515
|
<input
|
|
513
516
|
class="pf-v5-c-check__input"
|
|
514
517
|
type="checkbox"
|
|
@@ -516,7 +519,6 @@ cssPrefix: pf-v5-c-card
|
|
|
516
519
|
name="card-selectable-example-check"
|
|
517
520
|
aria-labelledby="card-selectable-example"
|
|
518
521
|
/>
|
|
519
|
-
|
|
520
522
|
<label
|
|
521
523
|
class="pf-v5-c-check__label"
|
|
522
524
|
for="card-selectable-example-check"
|
|
@@ -543,7 +545,7 @@ cssPrefix: pf-v5-c-card
|
|
|
543
545
|
<div class="pf-v5-c-card__header">
|
|
544
546
|
<div class="pf-v5-c-card__actions pf-m-no-offset">
|
|
545
547
|
<div class="pf-v5-c-card__selectable-actions">
|
|
546
|
-
<div class="pf-v5-c-check
|
|
548
|
+
<div class="pf-v5-c-check">
|
|
547
549
|
<input
|
|
548
550
|
class="pf-v5-c-check__input"
|
|
549
551
|
type="checkbox"
|
|
@@ -552,7 +554,6 @@ cssPrefix: pf-v5-c-card
|
|
|
552
554
|
name="card-selectable-example-disabled-check"
|
|
553
555
|
aria-labelledby="card-selectable-example-disabled"
|
|
554
556
|
/>
|
|
555
|
-
|
|
556
557
|
<label
|
|
557
558
|
class="pf-v5-c-check__label pf-m-disabled"
|
|
558
559
|
for="card-selectable-example-disabled-check"
|
|
@@ -582,7 +583,7 @@ cssPrefix: pf-v5-c-card
|
|
|
582
583
|
<div class="pf-v5-c-card__header">
|
|
583
584
|
<div class="pf-v5-c-card__actions pf-m-no-offset">
|
|
584
585
|
<div class="pf-v5-c-card__selectable-actions">
|
|
585
|
-
<div class="pf-v5-c-check
|
|
586
|
+
<div class="pf-v5-c-check">
|
|
586
587
|
<input
|
|
587
588
|
class="pf-v5-c-check__input"
|
|
588
589
|
type="checkbox"
|
|
@@ -592,7 +593,6 @@ cssPrefix: pf-v5-c-card
|
|
|
592
593
|
name="card-selectable-example-selected-disabled-check"
|
|
593
594
|
aria-labelledby="card-selectable-example-selected-disabled"
|
|
594
595
|
/>
|
|
595
|
-
|
|
596
596
|
<label
|
|
597
597
|
class="pf-v5-c-check__label pf-m-disabled"
|
|
598
598
|
for="card-selectable-example-selected-disabled-check"
|
|
@@ -626,7 +626,7 @@ cssPrefix: pf-v5-c-card
|
|
|
626
626
|
<div class="pf-v5-c-card__header">
|
|
627
627
|
<div class="pf-v5-c-card__actions pf-m-no-offset">
|
|
628
628
|
<div class="pf-v5-c-card__selectable-actions">
|
|
629
|
-
<div class="pf-v5-c-radio
|
|
629
|
+
<div class="pf-v5-c-radio">
|
|
630
630
|
<input
|
|
631
631
|
class="pf-v5-c-radio__input"
|
|
632
632
|
type="radio"
|
|
@@ -634,7 +634,6 @@ cssPrefix: pf-v5-c-card
|
|
|
634
634
|
name="card-single-selectable-example-radio"
|
|
635
635
|
aria-labelledby="card-single-selectable-example"
|
|
636
636
|
/>
|
|
637
|
-
|
|
638
637
|
<label
|
|
639
638
|
class="pf-v5-c-radio__label"
|
|
640
639
|
for="card-single-selectable-example-radio"
|
|
@@ -664,7 +663,7 @@ cssPrefix: pf-v5-c-card
|
|
|
664
663
|
<div class="pf-v5-c-card__header">
|
|
665
664
|
<div class="pf-v5-c-card__actions pf-m-no-offset">
|
|
666
665
|
<div class="pf-v5-c-card__selectable-actions">
|
|
667
|
-
<div class="pf-v5-c-radio
|
|
666
|
+
<div class="pf-v5-c-radio">
|
|
668
667
|
<input
|
|
669
668
|
class="pf-v5-c-radio__input"
|
|
670
669
|
type="radio"
|
|
@@ -673,7 +672,6 @@ cssPrefix: pf-v5-c-card
|
|
|
673
672
|
aria-labelledby="card-single-selectable-example-disabled"
|
|
674
673
|
disabled
|
|
675
674
|
/>
|
|
676
|
-
|
|
677
675
|
<label
|
|
678
676
|
class="pf-v5-c-radio__label pf-m-disabled"
|
|
679
677
|
for="card-single-selectable-example-disabled-radio"
|
|
@@ -703,7 +701,7 @@ cssPrefix: pf-v5-c-card
|
|
|
703
701
|
<div class="pf-v5-c-card__header">
|
|
704
702
|
<div class="pf-v5-c-card__actions pf-m-no-offset">
|
|
705
703
|
<div class="pf-v5-c-card__selectable-actions">
|
|
706
|
-
<div class="pf-v5-c-radio
|
|
704
|
+
<div class="pf-v5-c-radio">
|
|
707
705
|
<input
|
|
708
706
|
class="pf-v5-c-radio__input"
|
|
709
707
|
type="radio"
|
|
@@ -713,7 +711,6 @@ cssPrefix: pf-v5-c-card
|
|
|
713
711
|
disabled
|
|
714
712
|
checked
|
|
715
713
|
/>
|
|
716
|
-
|
|
717
714
|
<label
|
|
718
715
|
class="pf-v5-c-radio__label pf-m-disabled"
|
|
719
716
|
for="card-single-selectable-example-selected-disabled-radio"
|
|
@@ -867,7 +864,7 @@ cssPrefix: pf-v5-c-card
|
|
|
867
864
|
<div class="pf-v5-c-card__header">
|
|
868
865
|
<div class="pf-v5-c-card__actions pf-m-no-offset">
|
|
869
866
|
<div class="pf-v5-c-card__selectable-actions">
|
|
870
|
-
<div class="pf-v5-c-check
|
|
867
|
+
<div class="pf-v5-c-check">
|
|
871
868
|
<input
|
|
872
869
|
class="pf-v5-c-check__input"
|
|
873
870
|
type="checkbox"
|
|
@@ -875,7 +872,6 @@ cssPrefix: pf-v5-c-card
|
|
|
875
872
|
name="card-clickable-selectable-example-check"
|
|
876
873
|
aria-labelledby="card-clickable-selectable-example"
|
|
877
874
|
/>
|
|
878
|
-
|
|
879
875
|
<label
|
|
880
876
|
class="pf-v5-c-check__label"
|
|
881
877
|
for="card-clickable-selectable-example-check"
|
|
@@ -908,7 +904,7 @@ cssPrefix: pf-v5-c-card
|
|
|
908
904
|
<div class="pf-v5-c-card__header">
|
|
909
905
|
<div class="pf-v5-c-card__actions pf-m-no-offset">
|
|
910
906
|
<div class="pf-v5-c-card__selectable-actions">
|
|
911
|
-
<div class="pf-v5-c-check
|
|
907
|
+
<div class="pf-v5-c-check">
|
|
912
908
|
<input
|
|
913
909
|
class="pf-v5-c-check__input"
|
|
914
910
|
type="checkbox"
|
|
@@ -916,7 +912,6 @@ cssPrefix: pf-v5-c-card
|
|
|
916
912
|
name="card-clickable-selectable-current-example-check"
|
|
917
913
|
aria-labelledby="card-clickable-selectable-current-example"
|
|
918
914
|
/>
|
|
919
|
-
|
|
920
915
|
<label
|
|
921
916
|
class="pf-v5-c-check__label"
|
|
922
917
|
for="card-clickable-selectable-current-example-check"
|
|
@@ -949,7 +944,7 @@ cssPrefix: pf-v5-c-card
|
|
|
949
944
|
<div class="pf-v5-c-card__header">
|
|
950
945
|
<div class="pf-v5-c-card__actions pf-m-no-offset">
|
|
951
946
|
<div class="pf-v5-c-card__selectable-actions">
|
|
952
|
-
<div class="pf-v5-c-check
|
|
947
|
+
<div class="pf-v5-c-check">
|
|
953
948
|
<input
|
|
954
949
|
class="pf-v5-c-check__input"
|
|
955
950
|
type="checkbox"
|
|
@@ -958,7 +953,6 @@ cssPrefix: pf-v5-c-card
|
|
|
958
953
|
name="card-clickable-selectable-example-disabled-check"
|
|
959
954
|
aria-labelledby="card-clickable-selectable-example-disabled"
|
|
960
955
|
/>
|
|
961
|
-
|
|
962
956
|
<label
|
|
963
957
|
class="pf-v5-c-check__label pf-m-disabled"
|
|
964
958
|
for="card-clickable-selectable-example-disabled-check"
|
|
@@ -992,7 +986,7 @@ cssPrefix: pf-v5-c-card
|
|
|
992
986
|
<div class="pf-v5-c-card__header">
|
|
993
987
|
<div class="pf-v5-c-card__actions pf-m-no-offset">
|
|
994
988
|
<div class="pf-v5-c-card__selectable-actions">
|
|
995
|
-
<div class="pf-v5-c-check
|
|
989
|
+
<div class="pf-v5-c-check">
|
|
996
990
|
<input
|
|
997
991
|
class="pf-v5-c-check__input"
|
|
998
992
|
type="checkbox"
|
|
@@ -1002,7 +996,6 @@ cssPrefix: pf-v5-c-card
|
|
|
1002
996
|
name="card-clickable-selectable-example-selected-disabled-check"
|
|
1003
997
|
aria-labelledby="card-clickable-selectable-example-selected-disabled"
|
|
1004
998
|
/>
|
|
1005
|
-
|
|
1006
999
|
<label
|
|
1007
1000
|
class="pf-v5-c-check__label pf-m-disabled"
|
|
1008
1001
|
for="card-clickable-selectable-example-selected-disabled-check"
|
|
@@ -1233,6 +1226,7 @@ cssPrefix: pf-v5-c-card
|
|
|
1233
1226
|
<input
|
|
1234
1227
|
class="pf-v5-c-check__input"
|
|
1235
1228
|
type="checkbox"
|
|
1229
|
+
aria-label="Standalone check"
|
|
1236
1230
|
id="card-expandable-example-check"
|
|
1237
1231
|
name="card-expandable-example-check"
|
|
1238
1232
|
aria-labelledby="card-expandable-example"
|
|
@@ -1335,6 +1329,7 @@ cssPrefix: pf-v5-c-card
|
|
|
1335
1329
|
<input
|
|
1336
1330
|
class="pf-v5-c-check__input"
|
|
1337
1331
|
type="checkbox"
|
|
1332
|
+
aria-label="Standalone check"
|
|
1338
1333
|
id="card-expandable-image-example-check"
|
|
1339
1334
|
name="card-expandable-image-example-check"
|
|
1340
1335
|
aria-labelledby="card-expandable-image-example"
|
|
@@ -1422,6 +1417,7 @@ cssPrefix: pf-v5-c-card
|
|
|
1422
1417
|
<input
|
|
1423
1418
|
class="pf-v5-c-check__input"
|
|
1424
1419
|
type="checkbox"
|
|
1420
|
+
aria-label="Standalone check"
|
|
1425
1421
|
id="card-expanded-example-check"
|
|
1426
1422
|
name="card-expanded-example-check"
|
|
1427
1423
|
aria-labelledby="card-expanded-example"
|
|
@@ -1506,6 +1502,7 @@ cssPrefix: pf-v5-c-card
|
|
|
1506
1502
|
<input
|
|
1507
1503
|
class="pf-v5-c-check__input"
|
|
1508
1504
|
type="checkbox"
|
|
1505
|
+
aria-label="Standalone check"
|
|
1509
1506
|
id="card-full-height-example-check"
|
|
1510
1507
|
name="card-full-height-example-check"
|
|
1511
1508
|
aria-labelledby="card-full-height-example"
|
|
@@ -1590,6 +1587,7 @@ cssPrefix: pf-v5-c-card
|
|
|
1590
1587
|
<input
|
|
1591
1588
|
class="pf-v5-c-check__input"
|
|
1592
1589
|
type="checkbox"
|
|
1590
|
+
aria-label="Standalone check"
|
|
1593
1591
|
id="card-toggle-on-right-example-check"
|
|
1594
1592
|
name="card-toggle-on-right-example-check"
|
|
1595
1593
|
aria-labelledby="card-toggle-on-right-example"
|
|
@@ -75,7 +75,7 @@ url: https://raw.githubusercontent.com/Azure-Samples/helm-charts/master/docs</co
|
|
|
75
75
|
kind: HelmChartRepository
|
|
76
76
|
metadata:
|
|
77
77
|
name: azure-sample-repo<div
|
|
78
|
-
class="pf-v5-c-expandable-section
|
|
78
|
+
class="pf-v5-c-expandable-section"
|
|
79
79
|
><div
|
|
80
80
|
class="pf-v5-c-expandable-section__content"
|
|
81
81
|
hidden
|
|
@@ -87,7 +87,7 @@ name: azure-sample-repo<div
|
|
|
87
87
|
</div>
|
|
88
88
|
</code>
|
|
89
89
|
</pre>
|
|
90
|
-
<div class="pf-v5-c-expandable-section
|
|
90
|
+
<div class="pf-v5-c-expandable-section">
|
|
91
91
|
<button
|
|
92
92
|
type="button"
|
|
93
93
|
class="pf-v5-c-expandable-section__toggle"
|
|
@@ -136,7 +136,7 @@ name: azure-sample-repo<div
|
|
|
136
136
|
kind: HelmChartRepository
|
|
137
137
|
metadata:
|
|
138
138
|
name: azure-sample-repo<div
|
|
139
|
-
class="pf-v5-c-expandable-section pf-m-expanded
|
|
139
|
+
class="pf-v5-c-expandable-section pf-m-expanded"
|
|
140
140
|
><div
|
|
141
141
|
class="pf-v5-c-expandable-section__content"
|
|
142
142
|
id="code-block-expandable-expanded-content"
|
|
@@ -147,7 +147,7 @@ name: azure-sample-repo<div
|
|
|
147
147
|
</div>
|
|
148
148
|
</code>
|
|
149
149
|
</pre>
|
|
150
|
-
<div class="pf-v5-c-expandable-section pf-m-expanded
|
|
150
|
+
<div class="pf-v5-c-expandable-section pf-m-expanded">
|
|
151
151
|
<button
|
|
152
152
|
type="button"
|
|
153
153
|
class="pf-v5-c-expandable-section__toggle"
|
|
@@ -163,11 +163,11 @@ cssPrefix: pf-v5-c-content
|
|
|
163
163
|
|
|
164
164
|
When you can't use the CSS classes you want, or when you just want to directly use HTML tags, use `pf-v5-c-content` as container. It can handle almost any HTML tag:
|
|
165
165
|
|
|
166
|
-
*
|
|
167
|
-
*
|
|
168
|
-
*
|
|
169
|
-
*
|
|
170
|
-
*
|
|
166
|
+
* `<p>` paragraphs
|
|
167
|
+
* `<ul>` `<ol>` `<dl>` lists
|
|
168
|
+
* `<h1>` to `<h6>` headings
|
|
169
|
+
* `<blockquote>` quotes
|
|
170
|
+
* `<em>` and `<strong>`
|
|
171
171
|
|
|
172
172
|
This `pf-v5-c-content` class can be used in any context where you just want to (or can only) write some text.
|
|
173
173
|
|
|
@@ -46,6 +46,9 @@ cssPrefix: pf-v5-c-empty-state
|
|
|
46
46
|
<div class="pf-v5-c-empty-state pf-m-xs">
|
|
47
47
|
<div class="pf-v5-c-empty-state__content">
|
|
48
48
|
<div class="pf-v5-c-empty-state__header">
|
|
49
|
+
<div class="pf-v5-c-empty-state__icon">
|
|
50
|
+
<i class="fas fa-cubes" aria-hidden="true"></i>
|
|
51
|
+
</div>
|
|
49
52
|
<div class="pf-v5-c-empty-state__title">
|
|
50
53
|
<h1 class="pf-v5-c-empty-state__title-text">Empty state</h1>
|
|
51
54
|
</div>
|
|
@@ -53,7 +56,7 @@ cssPrefix: pf-v5-c-empty-state
|
|
|
53
56
|
|
|
54
57
|
<div
|
|
55
58
|
class="pf-v5-c-empty-state__body"
|
|
56
|
-
>This represents an the empty state pattern in PatternFly.
|
|
59
|
+
>This represents an the empty state pattern in PatternFly. The icon is optional.</div>
|
|
57
60
|
|
|
58
61
|
<div class="pf-v5-c-empty-state__footer">
|
|
59
62
|
<div class="pf-v5-c-empty-state__actions">
|
|
@@ -190,6 +193,42 @@ cssPrefix: pf-v5-c-empty-state
|
|
|
190
193
|
|
|
191
194
|
```
|
|
192
195
|
|
|
196
|
+
### With status
|
|
197
|
+
|
|
198
|
+
```html
|
|
199
|
+
<div class="pf-v5-c-empty-state pf-m-success">
|
|
200
|
+
<div class="pf-v5-c-empty-state__content">
|
|
201
|
+
<div class="pf-v5-c-empty-state__header">
|
|
202
|
+
<div class="pf-v5-c-empty-state__icon">
|
|
203
|
+
<i class="fas fa- fa-check-circle" aria-hidden="true"></i>
|
|
204
|
+
</div>
|
|
205
|
+
<div class="pf-v5-c-empty-state__title">
|
|
206
|
+
<h1 class="pf-v5-c-empty-state__title-text">You're all set</h1>
|
|
207
|
+
</div>
|
|
208
|
+
</div>
|
|
209
|
+
|
|
210
|
+
<div
|
|
211
|
+
class="pf-v5-c-empty-state__body"
|
|
212
|
+
>This represents an the empty state pattern in PatternFly. Hopefully it's simple enough to use but flexible enough to meet a variety of needs.</div>
|
|
213
|
+
|
|
214
|
+
<div class="pf-v5-c-empty-state__footer">
|
|
215
|
+
<div class="pf-v5-c-empty-state__actions">
|
|
216
|
+
<button class="pf-v5-c-button pf-m-primary" type="button">Primary action</button>
|
|
217
|
+
</div>
|
|
218
|
+
<div class="pf-v5-c-empty-state__actions">
|
|
219
|
+
<button class="pf-v5-c-button pf-m-link" type="button">Multiple</button>
|
|
220
|
+
<button class="pf-v5-c-button pf-m-link" type="button">Action buttons</button>
|
|
221
|
+
<button class="pf-v5-c-button pf-m-link" type="button">Can</button>
|
|
222
|
+
<button class="pf-v5-c-button pf-m-link" type="button">Go here</button>
|
|
223
|
+
<button class="pf-v5-c-button pf-m-link" type="button">In the second</button>
|
|
224
|
+
<button class="pf-v5-c-button pf-m-link" type="button">Action area</button>
|
|
225
|
+
</div>
|
|
226
|
+
</div>
|
|
227
|
+
</div>
|
|
228
|
+
</div>
|
|
229
|
+
|
|
230
|
+
```
|
|
231
|
+
|
|
193
232
|
## Documentation
|
|
194
233
|
|
|
195
234
|
### Accessibility
|
|
@@ -216,3 +255,8 @@ cssPrefix: pf-v5-c-empty-state
|
|
|
216
255
|
| `.pf-m-lg` | `.pf-v5-c-empty-state` | Modifies the empty state for a large max-width. |
|
|
217
256
|
| `.pf-m-xl` | `.pf-v5-c-empty-state` | Modifies the empty state for an extra large variation and max-width. |
|
|
218
257
|
| `.pf-m-full-height` | `.pf-v5-c-empty-state` | Modifies the empty state to be `height: 100%`. If you need the empty state content to be centered vertically, you can use this modifier to make the empty state fill the height of its container, and center `.pf-v5-c-empty-state__content`. **Note:** this modifier requires the parent of `.pf-v5-c-empty-state` have an implicit or explicit `height` defined. |
|
|
258
|
+
| `.pf-m-danger` | `.pf-v5-c-empty-state` | Modifies the empty state for danger status. |
|
|
259
|
+
| `.pf-m-warning` | `.pf-v5-c-empty-state` | Modifies the empty state for warning status. |
|
|
260
|
+
| `.pf-m-success` | `.pf-v5-c-empty-state` | Modifies the empty state for success status. |
|
|
261
|
+
| `.pf-m-info` | `.pf-v5-c-empty-state` | Modifies the empty state for info status. |
|
|
262
|
+
| `.pf-m-custom` | `.pf-v5-c-empty-state` | Modifies the empty state for custom status. |
|
|
@@ -141,7 +141,7 @@ cssPrefix: pf-v5-c-expandable-section
|
|
|
141
141
|
```html
|
|
142
142
|
<div class="pf-v5-l-stack pf-m-gutter">
|
|
143
143
|
<div class="pf-v5-l-stack__item">
|
|
144
|
-
<div class="pf-v5-c-expandable-section pf-m-expanded
|
|
144
|
+
<div class="pf-v5-c-expandable-section pf-m-expanded">
|
|
145
145
|
<div
|
|
146
146
|
class="pf-v5-c-expandable-section__content"
|
|
147
147
|
id="detached-toggle-content"
|
|
@@ -150,7 +150,7 @@ cssPrefix: pf-v5-c-expandable-section
|
|
|
150
150
|
</div>
|
|
151
151
|
|
|
152
152
|
<div class="pf-v5-l-stack__item">
|
|
153
|
-
<div class="pf-v5-c-expandable-section pf-m-expanded
|
|
153
|
+
<div class="pf-v5-c-expandable-section pf-m-expanded">
|
|
154
154
|
<button
|
|
155
155
|
type="button"
|
|
156
156
|
class="pf-v5-c-expandable-section__toggle"
|
|
@@ -228,9 +228,7 @@ cssPrefix: pf-v5-c-expandable-section
|
|
|
228
228
|
| `.pf-v5-c-expandable-section__content` | `<div>` | Initiates the expandable section content. **Required** |
|
|
229
229
|
| `.pf-m-expanded` | `.pf-v5-c-expandable-section` | Modifies the component for the expanded state. |
|
|
230
230
|
| `.pf-m-display-lg` | `.pf-v5-c-expandable-section` | Modifies the styling of the component to have large display styling. |
|
|
231
|
-
| `.pf-m-detached` | `.pf-v5-c-expandable-section` | Indicates that the expandable section toggle and content are detached from one another, so you can move them around independently in the markup. |
|
|
232
231
|
| `.pf-m-indented` | `.pf-v5-c-expandable-section` | Indicates that the expandable section content is indented and is aligned with the start of the title text to provide visual hierarchy. |
|
|
233
232
|
| `.pf-m-truncate` | `.pf-v5-c-expandable-section` | Indicates that the expandable section content is truncated by default, and not truncated when expanded. |
|
|
234
|
-
| `.pf-m-active` | `.pf-v5-c-expandable-section__toggle` | Forces display of the active state of the toggle. |
|
|
235
233
|
| `.pf-m-expand-top` | `.pf-v5-c-expandable-section__toggle-icon` | Modifies the toggle icon to point up when expanded. |
|
|
236
234
|
| `--pf-v5-c-expandable-section--m-truncate__content--LineClamp` | `.pf-v5-c-expandable-section.pf-m-truncate` | Modifies the number of lines to show before truncating. |
|
|
@@ -930,4 +930,6 @@ All accessibility requirements for inputs apply to elements within inline edit.
|
|
|
930
930
|
| `.pf-m-valid` | `.pf-v5-c-inline-edit__action` | Modifies the action button state. |
|
|
931
931
|
| `.pf-m-enable-editable` | `.pf-v5-c-inline-edit__action` | Exposes an inline edit action by default. |
|
|
932
932
|
|
|
933
|
-
|
|
933
|
+
```
|
|
934
|
+
-->
|
|
935
|
+
```
|
|
@@ -1949,16 +1949,16 @@ This style of label is used to indicate overflow within a label group.
|
|
|
1949
1949
|
|
|
1950
1950
|
**Note: Editable label behavior must be handled with JavaScript.**
|
|
1951
1951
|
|
|
1952
|
-
*
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
*
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
*
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1952
|
+
* `.pf-v5-c-label__editable-text` onClick event should:
|
|
1953
|
+
* Set `.pf-m-editable-active` on `.pf-v5-c-label`
|
|
1954
|
+
* Change `.pf-v5-c-label__editable-text`from a button to an input
|
|
1955
|
+
* Return keypress, when content is editable, should:
|
|
1956
|
+
* Be captured to prevent line wrapping and save updates to label text
|
|
1957
|
+
* Remove `.pf-m-editable-active` from `.pf-v5-c-label`
|
|
1958
|
+
* Esc keypress, when content is editable, should:
|
|
1959
|
+
* Undo any update to label text
|
|
1960
|
+
* Remove `.pf-m-editable-active` from `.pf-v5-c-label`
|
|
1961
|
+
* Change `.pf-v5-c-label__editable-text` back to a button
|
|
1962
1962
|
|
|
1963
1963
|
```html isBeta
|
|
1964
1964
|
<span class="pf-v5-c-label pf-m-editable pf-m-blue">
|
|
@@ -2692,7 +2692,7 @@ The contents of a label group can be modified by removing labels or adding new o
|
|
|
2692
2692
|
|
|
2693
2693
|
In addition to the JavaScript management of [editable labels](/components/label#editable), dynamic label groups also need:
|
|
2694
2694
|
|
|
2695
|
-
*
|
|
2695
|
+
* `.pf-v5-c-label-group.pf-m-editable` onClick event should (excluding labels within) set focus on `.pf-v5-c-label-group__textarea`
|
|
2696
2696
|
|
|
2697
2697
|
### Editable labels, dynamic label group
|
|
2698
2698
|
|
|
@@ -1,6 +1,22 @@
|
|
|
1
|
-
|
|
1
|
+
#ws-core-c-navigation-default,
|
|
2
|
+
#ws-core-c-navigation-basic,
|
|
3
|
+
#ws-core-c-navigation-grouped,
|
|
4
|
+
#ws-core-c-navigation-grouped-nav,
|
|
5
|
+
#ws-core-c-navigation-grouped-nav-no-titles,
|
|
6
|
+
#ws-core-c-navigation-expanded,
|
|
7
|
+
#ws-core-c-navigation-expanded-with-subnav-titles,
|
|
8
|
+
#ws-core-c-navigation-mixed,
|
|
9
|
+
#ws-core-c-navigation-horizontal,
|
|
10
|
+
#ws-core-c-navigation-horizontal-overflow,
|
|
11
|
+
#ws-core-c-navigation-horizontal-subnav,
|
|
12
|
+
#ws-core-c-navigation-horizontal-subnav-overflow,
|
|
13
|
+
#ws-core-c-navigation-drilldown,
|
|
14
|
+
#ws-core-c-navigation-nav-with-drilldown-menu .pf-v5-c-nav,
|
|
15
|
+
#ws-core-c-navigation-level-2-drilldown,
|
|
16
|
+
#ws-core-c-navigation-level-3-drilldown,
|
|
17
|
+
#ws-core-c-navigation-nav-with-flyout .pf-v5-c-nav,
|
|
18
|
+
#ws-core-c-navigation-grouped-nav-no-titles-no-margin-top {
|
|
2
19
|
padding: 0;
|
|
3
|
-
background-color: var(--pf-v5-global--BackgroundColor--dark-300);
|
|
4
20
|
}
|
|
5
21
|
|
|
6
22
|
#ws-core-c-navigation-horizontal-in-masthead,
|
|
@@ -2614,7 +2614,7 @@ When using anything other than a text node for the link text, wrap the link text
|
|
|
2614
2614
|
|
|
2615
2615
|
The navigation system relies on several different sub-components:
|
|
2616
2616
|
|
|
2617
|
-
*
|
|
2617
|
+
* `.pf-v5-c-nav__list` - default navigation list. It is the basis for both default and expandable, vertical navigation.
|
|
2618
2618
|
|
|
2619
2619
|
### Accessibility
|
|
2620
2620
|
|
|
@@ -33,21 +33,21 @@ cssPrefix: pf-v5-c-simple-list
|
|
|
33
33
|
<ul class="pf-v5-c-simple-list__list" role="list">
|
|
34
34
|
<li class="pf-v5-c-simple-list__item">
|
|
35
35
|
<a
|
|
36
|
-
class="pf-v5-c-simple-list__item-link pf-m-current"
|
|
36
|
+
class="pf-v5-c-simple-list__item-link pf-m-link pf-m-current"
|
|
37
37
|
href="#"
|
|
38
38
|
tabindex="0"
|
|
39
39
|
>List item 1</a>
|
|
40
40
|
</li>
|
|
41
41
|
<li class="pf-v5-c-simple-list__item">
|
|
42
42
|
<a
|
|
43
|
-
class="pf-v5-c-simple-list__item-link"
|
|
43
|
+
class="pf-v5-c-simple-list__item-link pf-m-link"
|
|
44
44
|
href="#"
|
|
45
45
|
tabindex="0"
|
|
46
46
|
>List item 2</a>
|
|
47
47
|
</li>
|
|
48
48
|
<li class="pf-v5-c-simple-list__item">
|
|
49
49
|
<a
|
|
50
|
-
class="pf-v5-c-simple-list__item-link"
|
|
50
|
+
class="pf-v5-c-simple-list__item-link pf-m-link"
|
|
51
51
|
href="#"
|
|
52
52
|
tabindex="0"
|
|
53
53
|
>List item 3</a>
|
|
@@ -24703,9 +24703,9 @@ Add a [width modifier](#width-modifiers) to `thead th` to limit string length or
|
|
|
24703
24703
|
|
|
24704
24704
|
There are a few ways this can be handled:
|
|
24705
24705
|
|
|
24706
|
-
*
|
|
24707
|
-
*
|
|
24708
|
-
*
|
|
24706
|
+
* Manipulate the `z-index` of the menu and/or table headers/columns manually.
|
|
24707
|
+
* Use the `menuAppendTo` prop in non-composable react components with menus to append the menu to an element outside of the table (e.g., the `<body>` element) so that the menu has a higher stacking context than - and can appear on top of - sticky headers/columns as well as appear outside of any scrollable content in the table.
|
|
24708
|
+
* In the case where the menu is outside of the table (e.g., above the table in a toolbar, or below the table and the menu expands up), assign the entire table a lower `z-index` than the `z-index` of the menu. This creates a lower stacking context for the entire table compared to the menu, while preserving the stacking context of the elements inside of the table.
|
|
24709
24709
|
|
|
24710
24710
|
### Sticky header
|
|
24711
24711
|
|
|
@@ -30824,8 +30824,8 @@ By default, all table header cells are set to `white-space: nowrap`. If a `<th>`
|
|
|
30824
30824
|
|
|
30825
30825
|
### Implementation support
|
|
30826
30826
|
|
|
30827
|
-
*
|
|
30828
|
-
*
|
|
30829
|
-
*
|
|
30830
|
-
*
|
|
30831
|
-
*
|
|
30827
|
+
* One expandable toggle button, positioned in the first cell of a non-expandable row, preceding an expandable row.
|
|
30828
|
+
* One checkbox or radio input, positioned in the first or second cell of a non-expandable row.
|
|
30829
|
+
* One action button, positioned in the last cell of a non-expandable row.
|
|
30830
|
+
* Tabular data.
|
|
30831
|
+
* Compact presentation modifier (not compatible with expandable table).
|
|
@@ -4,6 +4,6 @@
|
|
|
4
4
|
overflow: auto;
|
|
5
5
|
min-width: 161px;
|
|
6
6
|
max-width: 100%;
|
|
7
|
-
padding: var(--pf-
|
|
8
|
-
border: var(--pf-
|
|
7
|
+
padding: var(--pf-t--global--spacer--sm);
|
|
8
|
+
border: var(--pf-t--global--border--width--box--default) solid var(--pf-t--global--border--color--default);
|
|
9
9
|
}
|
|
@@ -12,11 +12,11 @@ The flex layout is based on the CSS Flex properties where the layout determines
|
|
|
12
12
|
|
|
13
13
|
The flex layout provides two ways of spacing its direct children.
|
|
14
14
|
|
|
15
|
-
*
|
|
16
|
-
|
|
17
|
-
*
|
|
18
|
-
|
|
19
|
-
|
|
15
|
+
* [Spacing system](#spacing-system)
|
|
16
|
+
* The spacing system applies a margin between the flex layout's direct children to create space between items along the main axis only. The benefit of the spacing system is that it allows for variable spacing between direct children. Use the spacing system when individual flex items along the main axis require a different spacer than sibling items.
|
|
17
|
+
* [Gap spacing](#gap-spacing)
|
|
18
|
+
* Gap spacing uses flex `gap` to space the flex layout's direct children, and can be applied to space rows (`row-gap`), columns (`column-gap`), or both (`gap`). The benefit of gap spacing is that item wrapping is improved and improved item spacing that works better with CSS flex's logical layout properties. E.g., spacing in RTL layouts that rely on logical properties is improved. Use the gap system when all direct children should use the same spacer for rows, columns, or both.
|
|
19
|
+
* **Note** using `gap` along the main axis will override any other spacing applied using the spacing system.
|
|
20
20
|
|
|
21
21
|
### Breakpoints
|
|
22
22
|
|
|
@@ -24,15 +24,15 @@ The flex layout provides two ways of spacing its direct children.
|
|
|
24
24
|
|
|
25
25
|
### Usefulness
|
|
26
26
|
|
|
27
|
-
*
|
|
28
|
-
*
|
|
27
|
+
* Use when content dictates layout and elements wrap when necessary.
|
|
28
|
+
* Use when a rigid grid is not necessary/wanted.
|
|
29
29
|
|
|
30
30
|
### Differences from utility class
|
|
31
31
|
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
*
|
|
32
|
+
* It contains multiple css declarations and does not use the `!important` tag.
|
|
33
|
+
* It does not require wrapping elements in columns or rows.
|
|
34
|
+
* It breaks the dependency upon adding utility classes to each child.
|
|
35
|
+
* It can be applied to container elements or components.
|
|
36
36
|
|
|
37
37
|
# Examples
|
|
38
38
|
|