@patternfly/react-core 4.225.2 → 4.225.5

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.
Files changed (90) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/dist/esm/components/Alert/Alert.d.ts.map +1 -1
  3. package/dist/esm/components/Alert/Alert.js +2 -2
  4. package/dist/esm/components/Alert/Alert.js.map +1 -1
  5. package/dist/esm/components/Menu/MenuGroup.d.ts +3 -1
  6. package/dist/esm/components/Menu/MenuGroup.d.ts.map +1 -1
  7. package/dist/esm/components/Menu/MenuGroup.js +2 -2
  8. package/dist/esm/components/Menu/MenuGroup.js.map +1 -1
  9. package/dist/esm/components/Nav/Nav.d.ts +1 -1
  10. package/dist/esm/components/Nav/Nav.d.ts.map +1 -1
  11. package/dist/esm/components/OptionsMenu/OptionsMenuItemGroup.js +2 -2
  12. package/dist/esm/components/OptionsMenu/OptionsMenuItemGroup.js.map +1 -1
  13. package/dist/esm/components/OptionsMenu/OptionsMenuToggleWithText.d.ts.map +1 -1
  14. package/dist/esm/components/OptionsMenu/OptionsMenuToggleWithText.js +4 -3
  15. package/dist/esm/components/OptionsMenu/OptionsMenuToggleWithText.js.map +1 -1
  16. package/dist/esm/components/Page/PageHeader.d.ts +2 -0
  17. package/dist/esm/components/Page/PageHeader.d.ts.map +1 -1
  18. package/dist/esm/components/Page/PageHeader.js +2 -2
  19. package/dist/esm/components/Page/PageHeader.js.map +1 -1
  20. package/dist/esm/components/Page/PageSidebar.d.ts +2 -0
  21. package/dist/esm/components/Page/PageSidebar.d.ts.map +1 -1
  22. package/dist/esm/components/Page/PageSidebar.js +3 -3
  23. package/dist/esm/components/Page/PageSidebar.js.map +1 -1
  24. package/dist/esm/components/Page/PageToggleButton.d.ts +2 -0
  25. package/dist/esm/components/Page/PageToggleButton.d.ts.map +1 -1
  26. package/dist/esm/components/Page/PageToggleButton.js +2 -2
  27. package/dist/esm/components/Page/PageToggleButton.js.map +1 -1
  28. package/dist/esm/components/Tabs/TabContent.d.ts.map +1 -1
  29. package/dist/esm/components/Tabs/TabContent.js +4 -2
  30. package/dist/esm/components/Tabs/TabContent.js.map +1 -1
  31. package/dist/js/components/Alert/Alert.d.ts.map +1 -1
  32. package/dist/js/components/Alert/Alert.js +2 -2
  33. package/dist/js/components/Alert/Alert.js.map +1 -1
  34. package/dist/js/components/Menu/MenuGroup.d.ts +3 -1
  35. package/dist/js/components/Menu/MenuGroup.d.ts.map +1 -1
  36. package/dist/js/components/Menu/MenuGroup.js +2 -2
  37. package/dist/js/components/Menu/MenuGroup.js.map +1 -1
  38. package/dist/js/components/Nav/Nav.d.ts +1 -1
  39. package/dist/js/components/Nav/Nav.d.ts.map +1 -1
  40. package/dist/js/components/OptionsMenu/OptionsMenuItemGroup.js +2 -2
  41. package/dist/js/components/OptionsMenu/OptionsMenuItemGroup.js.map +1 -1
  42. package/dist/js/components/OptionsMenu/OptionsMenuToggleWithText.d.ts.map +1 -1
  43. package/dist/js/components/OptionsMenu/OptionsMenuToggleWithText.js +4 -3
  44. package/dist/js/components/OptionsMenu/OptionsMenuToggleWithText.js.map +1 -1
  45. package/dist/js/components/Page/PageHeader.d.ts +2 -0
  46. package/dist/js/components/Page/PageHeader.d.ts.map +1 -1
  47. package/dist/js/components/Page/PageHeader.js +2 -2
  48. package/dist/js/components/Page/PageHeader.js.map +1 -1
  49. package/dist/js/components/Page/PageSidebar.d.ts +2 -0
  50. package/dist/js/components/Page/PageSidebar.d.ts.map +1 -1
  51. package/dist/js/components/Page/PageSidebar.js +3 -3
  52. package/dist/js/components/Page/PageSidebar.js.map +1 -1
  53. package/dist/js/components/Page/PageToggleButton.d.ts +2 -0
  54. package/dist/js/components/Page/PageToggleButton.d.ts.map +1 -1
  55. package/dist/js/components/Page/PageToggleButton.js +2 -2
  56. package/dist/js/components/Page/PageToggleButton.js.map +1 -1
  57. package/dist/js/components/Tabs/TabContent.d.ts.map +1 -1
  58. package/dist/js/components/Tabs/TabContent.js +4 -2
  59. package/dist/js/components/Tabs/TabContent.js.map +1 -1
  60. package/dist/umd/react-core.css +227 -227
  61. package/dist/umd/react-core.js +20 -18
  62. package/dist/umd/react-core.min.js +2 -2
  63. package/package.json +5 -5
  64. package/src/components/Alert/Alert.tsx +0 -2
  65. package/src/components/Alert/__tests__/__snapshots__/Alert.test.tsx.snap +0 -35
  66. package/src/components/Masthead/examples/Masthead.md +3 -3
  67. package/src/components/Menu/MenuGroup.tsx +5 -2
  68. package/src/components/Menu/examples/Menu.md +25 -25
  69. package/src/components/Menu/examples/MenuDrilldown.tsx +9 -9
  70. package/src/components/Menu/examples/MenuDrilldownInitialState.tsx +15 -12
  71. package/src/components/Menu/examples/MenuDrilldownSubmenuFunctions.tsx +9 -9
  72. package/src/components/Nav/Nav.tsx +1 -1
  73. package/src/components/Nav/examples/Nav.md +57 -57
  74. package/src/components/Nav/examples/NavDrilldown.tsx +1 -1
  75. package/src/components/OptionsMenu/OptionsMenuItemGroup.tsx +2 -2
  76. package/src/components/OptionsMenu/OptionsMenuToggleWithText.tsx +29 -24
  77. package/src/components/OptionsMenu/__tests__/Generated/__snapshots__/OptionsMenuItemGroup.test.tsx.snap +2 -0
  78. package/src/components/OptionsMenu/__tests__/__snapshots__/OptionsMenu.test.tsx.snap +5 -1
  79. package/src/components/OptionsMenu/examples/OptionsMenu.md +11 -11
  80. package/src/components/Page/PageHeader.tsx +4 -1
  81. package/src/components/Page/PageSidebar.tsx +5 -2
  82. package/src/components/Page/PageToggleButton.tsx +4 -1
  83. package/src/components/Page/examples/Page.md +23 -17
  84. package/src/components/Page/examples/page.css +3 -0
  85. package/src/components/Select/examples/Select.md +10 -10
  86. package/src/components/Tabs/TabContent.tsx +2 -1
  87. package/src/components/Tabs/examples/Tabs.md +139 -143
  88. package/src/components/Tabs/examples/TabsDynamic.tsx +1 -0
  89. package/src/components/ToggleGroup/examples/ToggleGroup.md +16 -16
  90. package/src/components/TreeView/examples/TreeView.md +165 -165
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@patternfly/react-core",
3
- "version": "4.225.2",
3
+ "version": "4.225.5",
4
4
  "description": "This library provides a set of common React components for use with the PatternFly reference implementation.",
5
5
  "main": "dist/js/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -34,9 +34,9 @@
34
34
  "generate": "node scripts/copyStyles.js"
35
35
  },
36
36
  "dependencies": {
37
- "@patternfly/react-icons": "^4.76.2",
38
- "@patternfly/react-styles": "^4.75.2",
39
- "@patternfly/react-tokens": "^4.77.2",
37
+ "@patternfly/react-icons": "^4.76.5",
38
+ "@patternfly/react-styles": "^4.75.5",
39
+ "@patternfly/react-tokens": "^4.77.5",
40
40
  "focus-trap": "6.9.2",
41
41
  "react-dropzone": "9.0.0",
42
42
  "tippy.js": "5.1.2",
@@ -60,5 +60,5 @@
60
60
  "react": "^16.8.0 || ^17.0.0",
61
61
  "react-dom": "^16.8.0 || ^17.0.0"
62
62
  },
63
- "gitHead": "9080d800a04f592f448f4adef6e40fe5ec69e72f"
63
+ "gitHead": "0e9a76133e3b0be7462d4eb0dbb34c28bbf21f3c"
64
64
  }
@@ -81,7 +81,6 @@ export const Alert: React.FunctionComponent<AlertProps> = ({
81
81
  isPlain = false,
82
82
  isLiveRegion = false,
83
83
  variantLabel = `${capitalize(variant)} alert:`,
84
- 'aria-label': ariaLabel = `${capitalize(variant)} Alert`,
85
84
  actionClose,
86
85
  actionLinks,
87
86
  title,
@@ -203,7 +202,6 @@ export const Alert: React.FunctionComponent<AlertProps> = ({
203
202
  styles.modifiers[variant as 'success' | 'danger' | 'warning' | 'info'],
204
203
  className
205
204
  )}
206
- aria-label={ariaLabel}
207
205
  {...ouiaProps}
208
206
  {...(isLiveRegion && {
209
207
  'aria-live': 'polite',
@@ -3,7 +3,6 @@
3
3
  exports[`Alert Alert - danger Action Link 1`] = `
4
4
  <DocumentFragment>
5
5
  <div
6
- aria-label="Danger Alert"
7
6
  class="pf-c-alert pf-m-danger"
8
7
  data-ouia-component-id="OUIA-Generated-Alert-danger-4"
9
8
  data-ouia-component-type="PF4/Alert"
@@ -61,7 +60,6 @@ exports[`Alert Alert - danger Action Link 1`] = `
61
60
  exports[`Alert Alert - danger Action and Title 1`] = `
62
61
  <DocumentFragment>
63
62
  <div
64
- aria-label="Danger Alert"
65
63
  class="pf-c-alert pf-m-danger"
66
64
  data-ouia-component-id="OUIA-Generated-Alert-danger-6"
67
65
  data-ouia-component-type="PF4/Alert"
@@ -224,7 +222,6 @@ exports[`Alert Alert - danger Custom icon 1`] = `
224
222
  exports[`Alert Alert - danger Description 1`] = `
225
223
  <DocumentFragment>
226
224
  <div
227
- aria-label="Danger Alert"
228
225
  class="pf-c-alert pf-m-danger"
229
226
  data-ouia-component-id="OUIA-Generated-Alert-danger-1"
230
227
  data-ouia-component-type="PF4/Alert"
@@ -268,7 +265,6 @@ exports[`Alert Alert - danger Description 1`] = `
268
265
  exports[`Alert Alert - danger Heading level 1`] = `
269
266
  <DocumentFragment>
270
267
  <div
271
- aria-label="Danger Alert"
272
268
  class="pf-c-alert pf-m-danger"
273
269
  data-ouia-component-id="OUIA-Generated-Alert-danger-3"
274
270
  data-ouia-component-type="PF4/Alert"
@@ -313,7 +309,6 @@ exports[`Alert Alert - danger Heading level 1`] = `
313
309
  exports[`Alert Alert - danger Title 1`] = `
314
310
  <DocumentFragment>
315
311
  <div
316
- aria-label="Danger Alert"
317
312
  class="pf-c-alert pf-m-danger"
318
313
  data-ouia-component-id="OUIA-Generated-Alert-danger-2"
319
314
  data-ouia-component-type="PF4/Alert"
@@ -405,7 +400,6 @@ exports[`Alert Alert - danger Toast alerts match snapsnot 1`] = `
405
400
  exports[`Alert Alert - danger expandable variation 1`] = `
406
401
  <DocumentFragment>
407
402
  <div
408
- aria-label="Danger Alert"
409
403
  class="pf-c-alert pf-m-expandable pf-m-danger"
410
404
  data-ouia-component-id="OUIA-Generated-Alert-danger-9"
411
405
  data-ouia-component-type="PF4/Alert"
@@ -477,7 +471,6 @@ exports[`Alert Alert - danger expandable variation 1`] = `
477
471
  exports[`Alert Alert - danger inline variation 1`] = `
478
472
  <DocumentFragment>
479
473
  <div
480
- aria-label="Danger Alert"
481
474
  class="pf-c-alert pf-m-inline pf-m-danger"
482
475
  data-ouia-component-id="OUIA-Generated-Alert-danger-8"
483
476
  data-ouia-component-type="PF4/Alert"
@@ -522,7 +515,6 @@ exports[`Alert Alert - danger inline variation 1`] = `
522
515
  exports[`Alert Alert - default Action Link 1`] = `
523
516
  <DocumentFragment>
524
517
  <div
525
- aria-label="Default Alert"
526
518
  class="pf-c-alert"
527
519
  data-ouia-component-id="OUIA-Generated-Alert-default-5"
528
520
  data-ouia-component-type="PF4/Alert"
@@ -580,7 +572,6 @@ exports[`Alert Alert - default Action Link 1`] = `
580
572
  exports[`Alert Alert - default Action and Title 1`] = `
581
573
  <DocumentFragment>
582
574
  <div
583
- aria-label="Default Alert"
584
575
  class="pf-c-alert"
585
576
  data-ouia-component-id="OUIA-Generated-Alert-default-7"
586
577
  data-ouia-component-type="PF4/Alert"
@@ -743,7 +734,6 @@ exports[`Alert Alert - default Custom icon 1`] = `
743
734
  exports[`Alert Alert - default Description 1`] = `
744
735
  <DocumentFragment>
745
736
  <div
746
- aria-label="Default Alert"
747
737
  class="pf-c-alert"
748
738
  data-ouia-component-id="OUIA-Generated-Alert-default-2"
749
739
  data-ouia-component-type="PF4/Alert"
@@ -787,7 +777,6 @@ exports[`Alert Alert - default Description 1`] = `
787
777
  exports[`Alert Alert - default Heading level 1`] = `
788
778
  <DocumentFragment>
789
779
  <div
790
- aria-label="Default Alert"
791
780
  class="pf-c-alert"
792
781
  data-ouia-component-id="OUIA-Generated-Alert-default-4"
793
782
  data-ouia-component-type="PF4/Alert"
@@ -832,7 +821,6 @@ exports[`Alert Alert - default Heading level 1`] = `
832
821
  exports[`Alert Alert - default Title 1`] = `
833
822
  <DocumentFragment>
834
823
  <div
835
- aria-label="Default Alert"
836
824
  class="pf-c-alert"
837
825
  data-ouia-component-id="OUIA-Generated-Alert-default-3"
838
826
  data-ouia-component-type="PF4/Alert"
@@ -924,7 +912,6 @@ exports[`Alert Alert - default Toast alerts match snapsnot 1`] = `
924
912
  exports[`Alert Alert - default expandable variation 1`] = `
925
913
  <DocumentFragment>
926
914
  <div
927
- aria-label="Default Alert"
928
915
  class="pf-c-alert pf-m-expandable"
929
916
  data-ouia-component-id="OUIA-Generated-Alert-default-10"
930
917
  data-ouia-component-type="PF4/Alert"
@@ -996,7 +983,6 @@ exports[`Alert Alert - default expandable variation 1`] = `
996
983
  exports[`Alert Alert - default inline variation 1`] = `
997
984
  <DocumentFragment>
998
985
  <div
999
- aria-label="Default Alert"
1000
986
  class="pf-c-alert pf-m-inline"
1001
987
  data-ouia-component-id="OUIA-Generated-Alert-default-9"
1002
988
  data-ouia-component-type="PF4/Alert"
@@ -1041,7 +1027,6 @@ exports[`Alert Alert - default inline variation 1`] = `
1041
1027
  exports[`Alert Alert - info Action Link 1`] = `
1042
1028
  <DocumentFragment>
1043
1029
  <div
1044
- aria-label="Info Alert"
1045
1030
  class="pf-c-alert pf-m-info"
1046
1031
  data-ouia-component-id="OUIA-Generated-Alert-info-4"
1047
1032
  data-ouia-component-type="PF4/Alert"
@@ -1099,7 +1084,6 @@ exports[`Alert Alert - info Action Link 1`] = `
1099
1084
  exports[`Alert Alert - info Action and Title 1`] = `
1100
1085
  <DocumentFragment>
1101
1086
  <div
1102
- aria-label="Info Alert"
1103
1087
  class="pf-c-alert pf-m-info"
1104
1088
  data-ouia-component-id="OUIA-Generated-Alert-info-6"
1105
1089
  data-ouia-component-type="PF4/Alert"
@@ -1262,7 +1246,6 @@ exports[`Alert Alert - info Custom icon 1`] = `
1262
1246
  exports[`Alert Alert - info Description 1`] = `
1263
1247
  <DocumentFragment>
1264
1248
  <div
1265
- aria-label="Info Alert"
1266
1249
  class="pf-c-alert pf-m-info"
1267
1250
  data-ouia-component-id="OUIA-Generated-Alert-info-1"
1268
1251
  data-ouia-component-type="PF4/Alert"
@@ -1306,7 +1289,6 @@ exports[`Alert Alert - info Description 1`] = `
1306
1289
  exports[`Alert Alert - info Heading level 1`] = `
1307
1290
  <DocumentFragment>
1308
1291
  <div
1309
- aria-label="Info Alert"
1310
1292
  class="pf-c-alert pf-m-info"
1311
1293
  data-ouia-component-id="OUIA-Generated-Alert-info-3"
1312
1294
  data-ouia-component-type="PF4/Alert"
@@ -1351,7 +1333,6 @@ exports[`Alert Alert - info Heading level 1`] = `
1351
1333
  exports[`Alert Alert - info Title 1`] = `
1352
1334
  <DocumentFragment>
1353
1335
  <div
1354
- aria-label="Info Alert"
1355
1336
  class="pf-c-alert pf-m-info"
1356
1337
  data-ouia-component-id="OUIA-Generated-Alert-info-2"
1357
1338
  data-ouia-component-type="PF4/Alert"
@@ -1443,7 +1424,6 @@ exports[`Alert Alert - info Toast alerts match snapsnot 1`] = `
1443
1424
  exports[`Alert Alert - info expandable variation 1`] = `
1444
1425
  <DocumentFragment>
1445
1426
  <div
1446
- aria-label="Info Alert"
1447
1427
  class="pf-c-alert pf-m-expandable pf-m-info"
1448
1428
  data-ouia-component-id="OUIA-Generated-Alert-info-9"
1449
1429
  data-ouia-component-type="PF4/Alert"
@@ -1515,7 +1495,6 @@ exports[`Alert Alert - info expandable variation 1`] = `
1515
1495
  exports[`Alert Alert - info inline variation 1`] = `
1516
1496
  <DocumentFragment>
1517
1497
  <div
1518
- aria-label="Info Alert"
1519
1498
  class="pf-c-alert pf-m-inline pf-m-info"
1520
1499
  data-ouia-component-id="OUIA-Generated-Alert-info-8"
1521
1500
  data-ouia-component-type="PF4/Alert"
@@ -1560,7 +1539,6 @@ exports[`Alert Alert - info inline variation 1`] = `
1560
1539
  exports[`Alert Alert - success Action Link 1`] = `
1561
1540
  <DocumentFragment>
1562
1541
  <div
1563
- aria-label="Success Alert"
1564
1542
  class="pf-c-alert pf-m-success"
1565
1543
  data-ouia-component-id="OUIA-Generated-Alert-success-4"
1566
1544
  data-ouia-component-type="PF4/Alert"
@@ -1618,7 +1596,6 @@ exports[`Alert Alert - success Action Link 1`] = `
1618
1596
  exports[`Alert Alert - success Action and Title 1`] = `
1619
1597
  <DocumentFragment>
1620
1598
  <div
1621
- aria-label="Success Alert"
1622
1599
  class="pf-c-alert pf-m-success"
1623
1600
  data-ouia-component-id="OUIA-Generated-Alert-success-6"
1624
1601
  data-ouia-component-type="PF4/Alert"
@@ -1781,7 +1758,6 @@ exports[`Alert Alert - success Custom icon 1`] = `
1781
1758
  exports[`Alert Alert - success Description 1`] = `
1782
1759
  <DocumentFragment>
1783
1760
  <div
1784
- aria-label="Success Alert"
1785
1761
  class="pf-c-alert pf-m-success"
1786
1762
  data-ouia-component-id="OUIA-Generated-Alert-success-1"
1787
1763
  data-ouia-component-type="PF4/Alert"
@@ -1825,7 +1801,6 @@ exports[`Alert Alert - success Description 1`] = `
1825
1801
  exports[`Alert Alert - success Heading level 1`] = `
1826
1802
  <DocumentFragment>
1827
1803
  <div
1828
- aria-label="Success Alert"
1829
1804
  class="pf-c-alert pf-m-success"
1830
1805
  data-ouia-component-id="OUIA-Generated-Alert-success-3"
1831
1806
  data-ouia-component-type="PF4/Alert"
@@ -1870,7 +1845,6 @@ exports[`Alert Alert - success Heading level 1`] = `
1870
1845
  exports[`Alert Alert - success Title 1`] = `
1871
1846
  <DocumentFragment>
1872
1847
  <div
1873
- aria-label="Success Alert"
1874
1848
  class="pf-c-alert pf-m-success"
1875
1849
  data-ouia-component-id="OUIA-Generated-Alert-success-2"
1876
1850
  data-ouia-component-type="PF4/Alert"
@@ -1962,7 +1936,6 @@ exports[`Alert Alert - success Toast alerts match snapsnot 1`] = `
1962
1936
  exports[`Alert Alert - success expandable variation 1`] = `
1963
1937
  <DocumentFragment>
1964
1938
  <div
1965
- aria-label="Success Alert"
1966
1939
  class="pf-c-alert pf-m-expandable pf-m-success"
1967
1940
  data-ouia-component-id="OUIA-Generated-Alert-success-9"
1968
1941
  data-ouia-component-type="PF4/Alert"
@@ -2034,7 +2007,6 @@ exports[`Alert Alert - success expandable variation 1`] = `
2034
2007
  exports[`Alert Alert - success inline variation 1`] = `
2035
2008
  <DocumentFragment>
2036
2009
  <div
2037
- aria-label="Success Alert"
2038
2010
  class="pf-c-alert pf-m-inline pf-m-success"
2039
2011
  data-ouia-component-id="OUIA-Generated-Alert-success-8"
2040
2012
  data-ouia-component-type="PF4/Alert"
@@ -2079,7 +2051,6 @@ exports[`Alert Alert - success inline variation 1`] = `
2079
2051
  exports[`Alert Alert - warning Action Link 1`] = `
2080
2052
  <DocumentFragment>
2081
2053
  <div
2082
- aria-label="Warning Alert"
2083
2054
  class="pf-c-alert pf-m-warning"
2084
2055
  data-ouia-component-id="OUIA-Generated-Alert-warning-4"
2085
2056
  data-ouia-component-type="PF4/Alert"
@@ -2137,7 +2108,6 @@ exports[`Alert Alert - warning Action Link 1`] = `
2137
2108
  exports[`Alert Alert - warning Action and Title 1`] = `
2138
2109
  <DocumentFragment>
2139
2110
  <div
2140
- aria-label="Warning Alert"
2141
2111
  class="pf-c-alert pf-m-warning"
2142
2112
  data-ouia-component-id="OUIA-Generated-Alert-warning-6"
2143
2113
  data-ouia-component-type="PF4/Alert"
@@ -2300,7 +2270,6 @@ exports[`Alert Alert - warning Custom icon 1`] = `
2300
2270
  exports[`Alert Alert - warning Description 1`] = `
2301
2271
  <DocumentFragment>
2302
2272
  <div
2303
- aria-label="Warning Alert"
2304
2273
  class="pf-c-alert pf-m-warning"
2305
2274
  data-ouia-component-id="OUIA-Generated-Alert-warning-1"
2306
2275
  data-ouia-component-type="PF4/Alert"
@@ -2344,7 +2313,6 @@ exports[`Alert Alert - warning Description 1`] = `
2344
2313
  exports[`Alert Alert - warning Heading level 1`] = `
2345
2314
  <DocumentFragment>
2346
2315
  <div
2347
- aria-label="Warning Alert"
2348
2316
  class="pf-c-alert pf-m-warning"
2349
2317
  data-ouia-component-id="OUIA-Generated-Alert-warning-3"
2350
2318
  data-ouia-component-type="PF4/Alert"
@@ -2389,7 +2357,6 @@ exports[`Alert Alert - warning Heading level 1`] = `
2389
2357
  exports[`Alert Alert - warning Title 1`] = `
2390
2358
  <DocumentFragment>
2391
2359
  <div
2392
- aria-label="Warning Alert"
2393
2360
  class="pf-c-alert pf-m-warning"
2394
2361
  data-ouia-component-id="OUIA-Generated-Alert-warning-2"
2395
2362
  data-ouia-component-type="PF4/Alert"
@@ -2481,7 +2448,6 @@ exports[`Alert Alert - warning Toast alerts match snapsnot 1`] = `
2481
2448
  exports[`Alert Alert - warning expandable variation 1`] = `
2482
2449
  <DocumentFragment>
2483
2450
  <div
2484
- aria-label="Warning Alert"
2485
2451
  class="pf-c-alert pf-m-expandable pf-m-warning"
2486
2452
  data-ouia-component-id="OUIA-Generated-Alert-warning-9"
2487
2453
  data-ouia-component-type="PF4/Alert"
@@ -2553,7 +2519,6 @@ exports[`Alert Alert - warning expandable variation 1`] = `
2553
2519
  exports[`Alert Alert - warning inline variation 1`] = `
2554
2520
  <DocumentFragment>
2555
2521
  <div
2556
- aria-label="Warning Alert"
2557
2522
  class="pf-c-alert pf-m-inline pf-m-warning"
2558
2523
  data-ouia-component-id="OUIA-Generated-Alert-warning-8"
2559
2524
  data-ouia-component-type="PF4/Alert"
@@ -23,7 +23,7 @@ import React from 'react';
23
23
  import { Masthead, MastheadToggle, MastheadMain, MastheadBrand, MastheadContent, Button } from '@patternfly/react-core';
24
24
  import BarsIcon from '@patternfly/react-icons/dist/js/icons/bars-icon';
25
25
 
26
- <Masthead id="basic">
26
+ <Masthead id="basic-example">
27
27
  <MastheadToggle>
28
28
  <Button variant="plain" onClick={() => {}} aria-label="Global navigation">
29
29
  <BarsIcon />
@@ -126,7 +126,7 @@ import React from 'react';
126
126
  import { Masthead, MastheadToggle, MastheadMain, MastheadBrand, MastheadContent, Button } from '@patternfly/react-core';
127
127
  import BarsIcon from '@patternfly/react-icons/dist/js/icons/bars-icon';
128
128
 
129
- <Masthead id="stack-masthead" display={{ default: 'inline', lg: 'stack', '2xl': 'inline' }}>
129
+ <Masthead id="stack-inline-masthead" display={{ default: 'inline', lg: 'stack', '2xl': 'inline' }}>
130
130
  <MastheadToggle>
131
131
  <Button variant="plain" onClick={() => {}} aria-label="Global navigation">
132
132
  <BarsIcon />
@@ -216,7 +216,7 @@ import BarsIcon from '@patternfly/react-icons/dist/js/icons/bars-icon';
216
216
  import { Link } from '@reach/router';
217
217
  import pfIcon from './pf-logo-small.svg';
218
218
 
219
- <Masthead id="basic">
219
+ <Masthead id="icon-router-link">
220
220
  <MastheadToggle>
221
221
  <Button variant="plain" onClick={() => {}} aria-label="Global navigation">
222
222
  <BarsIcon />
@@ -13,6 +13,8 @@ export interface MenuGroupProps extends React.HTMLProps<HTMLElement> {
13
13
  titleId?: string;
14
14
  /** Forwarded ref */
15
15
  innerRef?: React.Ref<any>;
16
+ /** Group label heading level. Default is h1. */
17
+ labelHeadingLevel?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
16
18
  }
17
19
 
18
20
  const MenuGroupBase: React.FunctionComponent<MenuGroupProps> = ({
@@ -21,13 +23,14 @@ const MenuGroupBase: React.FunctionComponent<MenuGroupProps> = ({
21
23
  label = '',
22
24
  titleId = '',
23
25
  innerRef,
26
+ labelHeadingLevel: HeadingLevel = 'h1',
24
27
  ...props
25
28
  }: MenuGroupProps) => (
26
29
  <section {...props} className={css('pf-c-menu__group', className)} ref={innerRef}>
27
30
  {label && (
28
- <h1 className={css(styles.menuGroupTitle)} id={titleId}>
31
+ <HeadingLevel className={css(styles.menuGroupTitle)} id={titleId}>
29
32
  {label}
30
- </h1>
33
+ </HeadingLevel>
31
34
  )}
32
35
  {children}
33
36
  </section>
@@ -309,7 +309,7 @@ class MenuWithTitledGroups extends React.Component {
309
309
  </MenuList>
310
310
  </MenuGroup>
311
311
  <Divider />
312
- <MenuGroup label="Group 1">
312
+ <MenuGroup label="Group 1" labelHeadingLevel="h3">
313
313
  <MenuList>
314
314
  <MenuItem to="#" itemId={1}>
315
315
  Link 1
@@ -318,7 +318,7 @@ class MenuWithTitledGroups extends React.Component {
318
318
  </MenuList>
319
319
  </MenuGroup>
320
320
  <Divider />
321
- <MenuGroup label="Group 2">
321
+ <MenuGroup label="Group 2" labelHeadingLevel="h3">
322
322
  <MenuList>
323
323
  <MenuItem to="#" itemId={3}>
324
324
  Link 1
@@ -424,7 +424,7 @@ class MenuWithActions extends React.Component {
424
424
  activeItemId={activeItem}
425
425
  >
426
426
  <MenuContent>
427
- <MenuGroup label="Actions">
427
+ <MenuGroup label="Actions" labelHeadingLevel="h3">
428
428
  <MenuList>
429
429
  <MenuItem
430
430
  isSelected={selectedItems.indexOf(0) !== -1}
@@ -545,7 +545,7 @@ class MenuWithFavorites extends React.Component {
545
545
  <MenuContent>
546
546
  {favorites.length > 0 && (
547
547
  <React.Fragment>
548
- <MenuGroup label="Favorites">
548
+ <MenuGroup label="Favorites" labelHeadingLevel="h3">
549
549
  <MenuList>
550
550
  {items
551
551
  // map the items into the favorites group that have been favorited
@@ -569,7 +569,7 @@ class MenuWithFavorites extends React.Component {
569
569
  <Divider />
570
570
  </React.Fragment>
571
571
  )}
572
- <MenuGroup label="All actions">
572
+ <MenuGroup label="All actions" labelHeadingLevel="h3">
573
573
  <MenuList>
574
574
  {items.map(item => {
575
575
  const { text, description, itemId, action, actionId } = item;
@@ -733,7 +733,7 @@ class MenuWithDrilldownBreadcrumbs extends React.Component {
733
733
  menuDrilledIn: [],
734
734
  drilldownPath: [],
735
735
  menuHeights: {},
736
- activeMenu: 'rootMenu',
736
+ activeMenu: 'breadcrumbs-rootMenu',
737
737
  breadcrumb: undefined,
738
738
  withMaxMenuHeight: false
739
739
  };
@@ -793,7 +793,7 @@ class MenuWithDrilldownBreadcrumbs extends React.Component {
793
793
 
794
794
  this.startRolloutBreadcrumb = (
795
795
  <Breadcrumb>
796
- <BreadcrumbItem component="button" onClick={() => this.drillOut('rootMenu', 'group:start_rollout', null)}>
796
+ <BreadcrumbItem component="button" onClick={() => this.drillOut('breadcrumbs-rootMenu', 'group:start_rollout', null)}>
797
797
  Root
798
798
  </BreadcrumbItem>
799
799
  <BreadcrumbHeading component="button">Start rollout</BreadcrumbHeading>
@@ -803,7 +803,7 @@ class MenuWithDrilldownBreadcrumbs extends React.Component {
803
803
  this.appGroupingBreadcrumb = isOpen => {
804
804
  return (
805
805
  <Breadcrumb>
806
- <BreadcrumbItem component="button" onClick={() => this.drillOut('rootMenu', 'group:start_rollout', null)}>
806
+ <BreadcrumbItem component="button" onClick={() => this.drillOut('breadcrumbs-rootMenu', 'group:start_rollout', null)}>
807
807
  Root
808
808
  </BreadcrumbItem>
809
809
  <BreadcrumbItem isDropdown>
@@ -820,7 +820,7 @@ class MenuWithDrilldownBreadcrumbs extends React.Component {
820
820
  component="button"
821
821
  icon={<AngleLeftIcon />}
822
822
  onClick={() =>
823
- this.drillOut('drilldownMenuStart', 'group:app_grouping_start', this.startRolloutBreadcrumb)
823
+ this.drillOut('breadcrumbs-drilldownMenuStart', 'group:app_grouping_start', this.startRolloutBreadcrumb)
824
824
  }
825
825
  >
826
826
  Start rollout
@@ -835,7 +835,7 @@ class MenuWithDrilldownBreadcrumbs extends React.Component {
835
835
 
836
836
  this.labelsBreadcrumb = isOpen => (
837
837
  <Breadcrumb>
838
- <BreadcrumbItem component="button" onClick={() => this.drillOut('rootMenu', 'group:start_rollout', null)}>
838
+ <BreadcrumbItem component="button" onClick={() => this.drillOut('breadcrumbs-rootMenu', 'group:start_rollout', null)}>
839
839
  Root
840
840
  </BreadcrumbItem>
841
841
  <BreadcrumbItem isDropdown>
@@ -851,7 +851,7 @@ class MenuWithDrilldownBreadcrumbs extends React.Component {
851
851
  key="dropdown-start"
852
852
  component="button"
853
853
  icon={<AngleLeftIcon />}
854
- onClick={() => this.drillOut('drilldownMenuStart', 'group:labels_start', this.startRolloutBreadcrumb)}
854
+ onClick={() => this.drillOut('breadcrumbs-drilldownMenuStart', 'group:labels_start', this.startRolloutBreadcrumb)}
855
855
  >
856
856
  Start rollout
857
857
  </DropdownItem>
@@ -864,7 +864,7 @@ class MenuWithDrilldownBreadcrumbs extends React.Component {
864
864
 
865
865
  this.pauseRolloutsBreadcrumb = (
866
866
  <Breadcrumb>
867
- <BreadcrumbItem component="button" onClick={() => this.drillOut('rootMenu', 'group:pause_rollout', null)}>
867
+ <BreadcrumbItem component="button" onClick={() => this.drillOut('breadcrumbs-rootMenu', 'group:pause_rollout', null)}>
868
868
  Root
869
869
  </BreadcrumbItem>
870
870
  <BreadcrumbHeading component="button">Pause rollouts</BreadcrumbHeading>
@@ -873,12 +873,12 @@ class MenuWithDrilldownBreadcrumbs extends React.Component {
873
873
 
874
874
  this.pauseRolloutsAppGrpBreadcrumb = (
875
875
  <Breadcrumb>
876
- <BreadcrumbItem component="button" onClick={() => this.drillOut('rootMenu', 'group:pause_rollout', null)}>
876
+ <BreadcrumbItem component="button" onClick={() => this.drillOut('breadcrumbs-rootMenu', 'group:pause_rollout', null)}>
877
877
  Root
878
878
  </BreadcrumbItem>
879
879
  <BreadcrumbItem
880
880
  component="button"
881
- onClick={() => this.drillOut('drilldownMenuPause', 'group:app_grouping', this.pauseRolloutsBreadcrumb)}
881
+ onClick={() => this.drillOut('breadcrumbs-drilldownMenuPause', 'group:app_grouping', this.pauseRolloutsBreadcrumb)}
882
882
  >
883
883
  Pause rollouts
884
884
  </BreadcrumbItem>
@@ -888,12 +888,12 @@ class MenuWithDrilldownBreadcrumbs extends React.Component {
888
888
 
889
889
  this.pauseRolloutsLabelsBreadcrumb = (
890
890
  <Breadcrumb>
891
- <BreadcrumbItem component="button" onClick={() => this.drillOut('rootMenu', 'group:pause_rollout', null)}>
891
+ <BreadcrumbItem component="button" onClick={() => this.drillOut('breadcrumbs-rootMenu', 'group:pause_rollout', null)}>
892
892
  Root
893
893
  </BreadcrumbItem>
894
894
  <BreadcrumbItem
895
895
  component="button"
896
- onClick={() => this.drillOut('drilldownMenuPause', 'group:labels', this.pauseRolloutsBreadcrumb)}
896
+ onClick={() => this.drillOut('breadcrumbs-drilldownMenuPause', 'group:labels', this.pauseRolloutsBreadcrumb)}
897
897
  >
898
898
  Pause rollouts
899
899
  </BreadcrumbItem>
@@ -903,7 +903,7 @@ class MenuWithDrilldownBreadcrumbs extends React.Component {
903
903
 
904
904
  this.addStorageBreadcrumb = (
905
905
  <Breadcrumb>
906
- <BreadcrumbItem component="button" onClick={() => this.drillOut('rootMenu', 'group:storage', null)}>
906
+ <BreadcrumbItem component="button" onClick={() => this.drillOut('breadcrumbs-rootMenu', 'group:storage', null)}>
907
907
  Root
908
908
  </BreadcrumbItem>
909
909
  <BreadcrumbHeading component="button">Add storage</BreadcrumbHeading>
@@ -926,7 +926,7 @@ class MenuWithDrilldownBreadcrumbs extends React.Component {
926
926
  />
927
927
  <br />
928
928
  <Menu
929
- id="rootMenu"
929
+ id="breadcrumbs-rootMenu"
930
930
  containsDrilldown
931
931
  drilldownItemPath={drilldownPath}
932
932
  drilledInMenus={menuDrilledIn}
@@ -948,14 +948,14 @@ class MenuWithDrilldownBreadcrumbs extends React.Component {
948
948
  direction="down"
949
949
  onClick={() => this.setState({ breadcrumb: this.startRolloutBreadcrumb })}
950
950
  drilldownMenu={
951
- <DrilldownMenu id="drilldownMenuStart">
951
+ <DrilldownMenu id="breadcrumbs-drilldownMenuStart">
952
952
  <MenuItem
953
953
  itemId="group:app_grouping_start"
954
954
  description="Groups A-G"
955
955
  direction="down"
956
956
  onClick={() => this.setState({ breadcrumb: this.appGroupingBreadcrumb(false) })}
957
957
  drilldownMenu={
958
- <DrilldownMenu id="drilldownMenuStartGrouping">
958
+ <DrilldownMenu id="breadcrumbs-drilldownMenuStartGrouping">
959
959
  <MenuItem itemId="group_a">Group A</MenuItem>
960
960
  <MenuItem itemId="group_b">Group B</MenuItem>
961
961
  <MenuItem itemId="group_c">Group C</MenuItem>
@@ -974,7 +974,7 @@ class MenuWithDrilldownBreadcrumbs extends React.Component {
974
974
  direction="down"
975
975
  onClick={() => this.setState({ breadcrumb: this.labelsBreadcrumb(false) })}
976
976
  drilldownMenu={
977
- <DrilldownMenu id="drilldownMenuStartLabels">
977
+ <DrilldownMenu id="breadcrumbs-drilldownMenuStartLabels">
978
978
  <MenuItem itemId="label_1">Label 1</MenuItem>
979
979
  <MenuItem itemId="label_2">Label 2</MenuItem>
980
980
  <MenuItem itemId="label_3">Label 3</MenuItem>
@@ -994,14 +994,14 @@ class MenuWithDrilldownBreadcrumbs extends React.Component {
994
994
  direction="down"
995
995
  onClick={() => this.setState({ breadcrumb: this.pauseRolloutsBreadcrumb })}
996
996
  drilldownMenu={
997
- <DrilldownMenu id="drilldownMenuPause">
997
+ <DrilldownMenu id="breadcrumbs-drilldownMenuPause">
998
998
  <MenuItem
999
999
  itemId="group:app_grouping"
1000
1000
  description="Groups A-C"
1001
1001
  direction="down"
1002
1002
  onClick={() => this.setState({ breadcrumb: this.pauseRolloutsAppGrpBreadcrumb })}
1003
1003
  drilldownMenu={
1004
- <DrilldownMenu id="drilldownMenuGrouping">
1004
+ <DrilldownMenu id="breadcrumbs-drilldownMenuGrouping">
1005
1005
  <MenuItem itemId="group_a">Group A</MenuItem>
1006
1006
  <MenuItem itemId="group_b">Group B</MenuItem>
1007
1007
  <MenuItem itemId="group_c">Group C</MenuItem>
@@ -1016,7 +1016,7 @@ class MenuWithDrilldownBreadcrumbs extends React.Component {
1016
1016
  direction="down"
1017
1017
  onClick={() => this.setState({ breadcrumb: this.pauseRolloutsLabelsBreadcrumb })}
1018
1018
  drilldownMenu={
1019
- <DrilldownMenu id="drilldownMenuLabels">
1019
+ <DrilldownMenu id="breadcrumbs-drilldownMenuLabels">
1020
1020
  <MenuItem itemId="label_1">Label 1</MenuItem>
1021
1021
  <MenuItem itemId="label_2">Label 2</MenuItem>
1022
1022
  <MenuItem itemId="label_3">Label 3</MenuItem>
@@ -1037,7 +1037,7 @@ class MenuWithDrilldownBreadcrumbs extends React.Component {
1037
1037
  direction="down"
1038
1038
  onClick={() => this.setState({ breadcrumb: this.addStorageBreadcrumb })}
1039
1039
  drilldownMenu={
1040
- <DrilldownMenu id="drilldownMenuStorage">
1040
+ <DrilldownMenu id="breadcrumbs-drilldownMenuStorage">
1041
1041
  <MenuItem icon={<CodeBranchIcon aria-hidden />} itemId="git">
1042
1042
  From git
1043
1043
  </MenuItem>
@@ -9,7 +9,7 @@ export const MenuDrilldown: React.FunctionComponent = () => {
9
9
  const [menuDrilledIn, setMenuDrilledIn] = React.useState<string[]>([]);
10
10
  const [drilldownPath, setDrilldownPath] = React.useState<string[]>([]);
11
11
  const [menuHeights, setMenuHeights] = React.useState<any>({});
12
- const [activeMenu, setActiveMenu] = React.useState<string>('rootMenu');
12
+ const [activeMenu, setActiveMenu] = React.useState<string>('drilldown-rootMenu');
13
13
 
14
14
  const drillIn = (fromMenuId: string, toMenuId: string, pathId: string) => {
15
15
  setMenuDrilledIn([...menuDrilledIn, fromMenuId]);
@@ -33,7 +33,7 @@ export const MenuDrilldown: React.FunctionComponent = () => {
33
33
 
34
34
  return (
35
35
  <Menu
36
- id="rootMenu"
36
+ id="drilldown-rootMenu"
37
37
  containsDrilldown
38
38
  drilldownItemPath={drilldownPath}
39
39
  drilledInMenus={menuDrilledIn}
@@ -48,7 +48,7 @@ export const MenuDrilldown: React.FunctionComponent = () => {
48
48
  itemId="group:start_rollout"
49
49
  direction="down"
50
50
  drilldownMenu={
51
- <DrilldownMenu id="drilldownMenuStart">
51
+ <DrilldownMenu id="drilldown-drilldownMenuStart">
52
52
  <MenuItem itemId="group:start_rollout_breadcrumb" direction="up">
53
53
  Start rollout
54
54
  </MenuItem>
@@ -58,7 +58,7 @@ export const MenuDrilldown: React.FunctionComponent = () => {
58
58
  description="Groups A-C"
59
59
  direction="down"
60
60
  drilldownMenu={
61
- <DrilldownMenu id="drilldownMenuStartGrouping">
61
+ <DrilldownMenu id="drilldown-drilldownMenuStartGrouping">
62
62
  <MenuItem itemId="group:app_grouping_breadcrumb" direction="up">
63
63
  Application grouping
64
64
  </MenuItem>
@@ -76,7 +76,7 @@ export const MenuDrilldown: React.FunctionComponent = () => {
76
76
  itemId="group:labels"
77
77
  direction="down"
78
78
  drilldownMenu={
79
- <DrilldownMenu id="drilldownMenuStartLabels">
79
+ <DrilldownMenu id="drilldown-drilldownMenuStartLabels">
80
80
  <MenuItem itemId="group:labels_breadcrumb" direction="up">
81
81
  Labels
82
82
  </MenuItem>
@@ -99,7 +99,7 @@ export const MenuDrilldown: React.FunctionComponent = () => {
99
99
  itemId="group:pause_rollout"
100
100
  direction="down"
101
101
  drilldownMenu={
102
- <DrilldownMenu id="drilldownMenuPause">
102
+ <DrilldownMenu id="drilldown-drilldownMenuPause">
103
103
  <MenuItem itemId="group:pause_rollout_breadcrumb" direction="up">
104
104
  Pause rollouts
105
105
  </MenuItem>
@@ -109,7 +109,7 @@ export const MenuDrilldown: React.FunctionComponent = () => {
109
109
  description="Groups A-C"
110
110
  direction="down"
111
111
  drilldownMenu={
112
- <DrilldownMenu id="drilldownMenuGrouping">
112
+ <DrilldownMenu id="drilldown-drilldownMenuGrouping">
113
113
  <MenuItem itemId="group:app_grouping_breadcrumb" direction="up">
114
114
  Application grouping
115
115
  </MenuItem>
@@ -127,7 +127,7 @@ export const MenuDrilldown: React.FunctionComponent = () => {
127
127
  itemId="group:labels"
128
128
  direction="down"
129
129
  drilldownMenu={
130
- <DrilldownMenu id="drilldownMenuLabels">
130
+ <DrilldownMenu id="drilldown-drilldownMenuLabels">
131
131
  <MenuItem itemId="group:labels_breadcrumb" direction="up">
132
132
  Labels
133
133
  </MenuItem>
@@ -151,7 +151,7 @@ export const MenuDrilldown: React.FunctionComponent = () => {
151
151
  icon={<StorageDomainIcon aria-hidden />}
152
152
  direction="down"
153
153
  drilldownMenu={
154
- <DrilldownMenu id="drilldownMenuStorage">
154
+ <DrilldownMenu id="drilldown-drilldownMenuStorage">
155
155
  <MenuItem itemId="group:storage_breadcrumb" icon={<StorageDomainIcon aria-hidden />} direction="up">
156
156
  Add storage
157
157
  </MenuItem>