@patternfly/react-core 4.162.4 → 4.162.8

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 (55) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/dist/esm/components/Label/Label.d.ts +2 -0
  3. package/dist/esm/components/Label/Label.d.ts.map +1 -1
  4. package/dist/esm/components/Label/Label.js +2 -2
  5. package/dist/esm/components/Label/Label.js.map +1 -1
  6. package/dist/esm/components/Menu/Menu.d.ts +4 -0
  7. package/dist/esm/components/Menu/Menu.d.ts.map +1 -1
  8. package/dist/esm/components/Menu/Menu.js +8 -5
  9. package/dist/esm/components/Menu/Menu.js.map +1 -1
  10. package/dist/esm/components/Menu/MenuContent.js +2 -2
  11. package/dist/esm/components/Menu/MenuContent.js.map +1 -1
  12. package/dist/esm/components/Menu/MenuContext.d.ts +1 -0
  13. package/dist/esm/components/Menu/MenuContext.d.ts.map +1 -1
  14. package/dist/esm/components/Menu/MenuContext.js +2 -1
  15. package/dist/esm/components/Menu/MenuContext.js.map +1 -1
  16. package/dist/esm/components/Wizard/WizardToggle.js +3 -3
  17. package/dist/esm/components/Wizard/WizardToggle.js.map +1 -1
  18. package/dist/js/components/Label/Label.d.ts +2 -0
  19. package/dist/js/components/Label/Label.d.ts.map +1 -1
  20. package/dist/js/components/Label/Label.js +2 -2
  21. package/dist/js/components/Label/Label.js.map +1 -1
  22. package/dist/js/components/Menu/Menu.d.ts +4 -0
  23. package/dist/js/components/Menu/Menu.d.ts.map +1 -1
  24. package/dist/js/components/Menu/Menu.js +8 -5
  25. package/dist/js/components/Menu/Menu.js.map +1 -1
  26. package/dist/js/components/Menu/MenuContent.js +2 -2
  27. package/dist/js/components/Menu/MenuContent.js.map +1 -1
  28. package/dist/js/components/Menu/MenuContext.d.ts +1 -0
  29. package/dist/js/components/Menu/MenuContext.d.ts.map +1 -1
  30. package/dist/js/components/Menu/MenuContext.js +2 -1
  31. package/dist/js/components/Menu/MenuContext.js.map +1 -1
  32. package/dist/js/components/Wizard/WizardToggle.js +3 -3
  33. package/dist/js/components/Wizard/WizardToggle.js.map +1 -1
  34. package/dist/umd/react-core.css +5402 -5399
  35. package/dist/umd/react-core.js +17 -13
  36. package/dist/umd/react-core.min.css +19486 -19483
  37. package/dist/umd/react-core.min.js +4 -4
  38. package/package.json +6 -6
  39. package/src/components/Form/__tests__/__snapshots__/FormFieldGroup.test.tsx.snap +6 -6
  40. package/src/components/Label/Label.tsx +5 -1
  41. package/src/components/Label/__tests__/__snapshots__/Label.test.tsx.snap +2 -2
  42. package/src/components/Label/examples/Label.md +4 -1
  43. package/src/components/Menu/Menu.tsx +13 -2
  44. package/src/components/Menu/MenuContent.tsx +2 -2
  45. package/src/components/Menu/MenuContext.ts +3 -1
  46. package/src/components/Menu/__tests__/Menu.test.tsx +34 -0
  47. package/src/components/Menu/__tests__/__snapshots__/Menu.test.tsx.snap +78 -0
  48. package/src/components/Menu/examples/Menu.md +107 -24
  49. package/src/components/Slider/_tests_/__snapshots__/Slider.test.tsx.snap +2 -2
  50. package/src/components/TreeView/__tests__/__snapshots__/TreeView.test.tsx.snap +6 -6
  51. package/src/components/Wizard/WizardToggle.tsx +5 -5
  52. package/src/components/Wizard/__tests__/Generated/__snapshots__/WizardToggle.test.tsx.snap +4 -4
  53. package/src/demos/CardDemos.md +652 -0
  54. package/src/helpers/__tests__/fileUtils.test.ts +1 -1
  55. package/src/helpers/__tests__/util.test.js +4 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@patternfly/react-core",
3
- "version": "4.162.4",
3
+ "version": "4.162.8",
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,16 +34,16 @@
34
34
  "generate": "node scripts/copyStyles.js"
35
35
  },
36
36
  "dependencies": {
37
- "@patternfly/react-icons": "^4.13.1",
38
- "@patternfly/react-styles": "^4.12.5",
39
- "@patternfly/react-tokens": "^4.14.1",
37
+ "@patternfly/react-icons": "^4.13.3",
38
+ "@patternfly/react-styles": "^4.12.7",
39
+ "@patternfly/react-tokens": "^4.14.4",
40
40
  "focus-trap": "6.2.2",
41
41
  "react-dropzone": "9.0.0",
42
42
  "tippy.js": "5.1.2",
43
43
  "tslib": "^2.0.0"
44
44
  },
45
45
  "devDependencies": {
46
- "@patternfly/patternfly": "4.144.5",
46
+ "@patternfly/patternfly": "4.146.0",
47
47
  "@rollup/plugin-commonjs": "^21.0.0",
48
48
  "@rollup/plugin-node-resolve": "^13.0.0",
49
49
  "@rollup/plugin-replace": "^3.0.0",
@@ -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": "eb4c7808e974fe4b10b96b1853c66bfdf6f2a6c4"
63
+ "gitHead": "f75951f8dae73e8da51b1b7eb62ac5a5c89eab28"
64
64
  }
@@ -4,7 +4,7 @@ exports[`Check expandable form field group example against snapshot 1`] = `
4
4
  <FormFieldGroupExpandable
5
5
  header={
6
6
  <FormFieldGroupHeader
7
- actions={<ForwardRef(Button) />}
7
+ actions={<Button />}
8
8
  titleDescription="Field group 4 description text."
9
9
  titleText={
10
10
  Object {
@@ -20,7 +20,7 @@ exports[`Check expandable form field group example against snapshot 1`] = `
20
20
  <InternalFormFieldGroup
21
21
  header={
22
22
  <FormFieldGroupHeader
23
- actions={<ForwardRef(Button) />}
23
+ actions={<Button />}
24
24
  titleDescription="Field group 4 description text."
25
25
  titleText={
26
26
  Object {
@@ -123,7 +123,7 @@ exports[`Check expandable form field group example against snapshot 1`] = `
123
123
  </FormFieldGroupToggle>
124
124
  </GenerateId>
125
125
  <FormFieldGroupHeader
126
- actions={<ForwardRef(Button) />}
126
+ actions={<Button />}
127
127
  titleDescription="Field group 4 description text."
128
128
  titleText={
129
129
  Object {
@@ -189,7 +189,7 @@ exports[`Check form filed group example against snapshot 1`] = `
189
189
  <FormFieldGroup
190
190
  header={
191
191
  <FormFieldGroupHeader
192
- actions={<ForwardRef(Button) />}
192
+ actions={<Button />}
193
193
  titleDescription="Field group 4 description text."
194
194
  titleText={
195
195
  Object {
@@ -203,7 +203,7 @@ exports[`Check form filed group example against snapshot 1`] = `
203
203
  <InternalFormFieldGroup
204
204
  header={
205
205
  <FormFieldGroupHeader
206
- actions={<ForwardRef(Button) />}
206
+ actions={<Button />}
207
207
  titleDescription="Field group 4 description text."
208
208
  titleText={
209
209
  Object {
@@ -218,7 +218,7 @@ exports[`Check form filed group example against snapshot 1`] = `
218
218
  className="pf-c-form__field-group"
219
219
  >
220
220
  <FormFieldGroupHeader
221
- actions={<ForwardRef(Button) />}
221
+ actions={<Button />}
222
222
  titleDescription="Field group 4 description text."
223
223
  titleText={
224
224
  Object {
@@ -36,6 +36,8 @@ export interface LabelProps extends React.HTMLProps<HTMLSpanElement> {
36
36
  onClose?: (event: React.MouseEvent) => void;
37
37
  /** Node for custom close button. */
38
38
  closeBtn?: React.ReactNode;
39
+ /** Aria label for close button */
40
+ closeBtnAriaLabel?: string;
39
41
  /** Additional properties for the default close button. */
40
42
  closeBtnProps?: any;
41
43
  /** Href for a label that is a link. If present, the label will change to an anchor element. */
@@ -78,6 +80,7 @@ export const Label: React.FunctionComponent<LabelProps> = ({
78
80
  onEditCancel,
79
81
  onEditComplete,
80
82
  closeBtn,
83
+ closeBtnAriaLabel,
81
84
  closeBtnProps,
82
85
  href,
83
86
  isOverflowLabel,
@@ -154,7 +157,8 @@ export const Label: React.FunctionComponent<LabelProps> = ({
154
157
  type="button"
155
158
  variant="plain"
156
159
  onClick={onClose}
157
- {...{ 'aria-label': 'label-close-button', ...closeBtnProps }}
160
+ aria-label={closeBtnAriaLabel || `Close ${children}`}
161
+ {...closeBtnProps}
158
162
  >
159
163
  <TimesIcon />
160
164
  </Button>
@@ -84,7 +84,7 @@ exports[`label with close button 1`] = `
84
84
  Something
85
85
  </span>
86
86
  <Button
87
- aria-label="label-close-button"
87
+ aria-label="Close Something"
88
88
  onClick={[MockFunction]}
89
89
  type="button"
90
90
  variant="plain"
@@ -108,7 +108,7 @@ exports[`label with close button 2`] = `
108
108
  Something
109
109
  </span>
110
110
  <Button
111
- aria-label="label-close-button"
111
+ aria-label="Close Something"
112
112
  onClick={[MockFunction]}
113
113
  type="button"
114
114
  variant="plain"
@@ -352,7 +352,9 @@ import { Link } from '@reach/router';
352
352
 
353
353
  ### Editable
354
354
 
355
- Click or press either enter or space to begin editing a label. After editing, click outside the label or press enter again to complete the edit. To cancel an edit, press escape.
355
+ Click or press either enter or space to begin editing a label. After editing, click outside the label or press enter again to complete the edit. To cancel an edit, press escape.
356
+
357
+ You can also customize any Label's close button aria-label as this example shows with `closeBtnAriaLabel`.
356
358
 
357
359
  ```js
358
360
  import React from 'react';
@@ -381,6 +383,7 @@ class EditableLabel extends React.Component {
381
383
  <Label
382
384
  color="blue"
383
385
  onClose={Function.prototype}
386
+ closeBtnAriaLabel="Custom close button for editable label"
384
387
  onEditCancel={this.onEditCancel}
385
388
  onEditComplete={this.onEditComplete}
386
389
  isEditable
@@ -53,6 +53,10 @@ export interface MenuProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'r
53
53
  innerRef?: React.Ref<HTMLDivElement>;
54
54
  /** Internal flag indicating if the Menu is the root of a menu tree */
55
55
  isRootMenu?: boolean;
56
+ /** Indicates if the menu should be without the outer box-shadow */
57
+ isPlain?: boolean;
58
+ /** Indicates if the menu should be srollable */
59
+ isScrollable?: boolean;
56
60
  }
57
61
 
58
62
  export interface MenuState {
@@ -70,7 +74,9 @@ class MenuBase extends React.Component<MenuProps, MenuState> {
70
74
  private activeMenu = null as Element;
71
75
  static defaultProps: MenuProps = {
72
76
  ouiaSafe: true,
73
- isRootMenu: true
77
+ isRootMenu: true,
78
+ isPlain: false,
79
+ isScrollable: false
74
80
  };
75
81
 
76
82
  constructor(props: MenuProps) {
@@ -220,6 +226,8 @@ class MenuBase extends React.Component<MenuProps, MenuState> {
220
226
  containsFlyout,
221
227
  containsDrilldown,
222
228
  isMenuDrilledIn,
229
+ isPlain,
230
+ isScrollable,
223
231
  drilldownItemPath,
224
232
  drilledInMenus,
225
233
  onDrillIn,
@@ -251,7 +259,8 @@ class MenuBase extends React.Component<MenuProps, MenuState> {
251
259
  onGetMenuHeight,
252
260
  flyoutRef: this.state.flyoutRef,
253
261
  setFlyoutRef: flyoutRef => this.setState({ flyoutRef }),
254
- disableHover: this.state.disableHover
262
+ disableHover: this.state.disableHover,
263
+ isScrollable
255
264
  }}
256
265
  >
257
266
  {isRootMenu && (
@@ -277,6 +286,8 @@ class MenuBase extends React.Component<MenuProps, MenuState> {
277
286
  id={id}
278
287
  className={css(
279
288
  styles.menu,
289
+ isPlain && styles.modifiers.plain,
290
+ isScrollable && styles.modifiers.scrollable,
280
291
  containsFlyout && styles.modifiers.flyout,
281
292
  containsDrilldown && styles.modifiers.drilldown,
282
293
  _isMenuDrilledIn && styles.modifiers.drilledIn,
@@ -28,7 +28,7 @@ export const MenuContent = React.forwardRef((props: MenuContentProps, ref: React
28
28
  };
29
29
  return (
30
30
  <MenuContext.Consumer>
31
- {({ menuId, onGetMenuHeight }) => (
31
+ {({ menuId, onGetMenuHeight, isScrollable }) => (
32
32
  <div
33
33
  {...rest}
34
34
  className={css(styles.menuContent, props.className)}
@@ -36,7 +36,7 @@ export const MenuContent = React.forwardRef((props: MenuContentProps, ref: React
36
36
  style={
37
37
  {
38
38
  '--pf-c-menu__content--Height': menuHeight || 'auto',
39
- '--pf-c-menu__content--MaxHeight': maxMenuHeight || 'auto'
39
+ '--pf-c-menu__content--MaxHeight': !isScrollable ? maxMenuHeight || 'auto' : ''
40
40
  } as React.CSSProperties
41
41
  }
42
42
  >
@@ -15,6 +15,7 @@ export const MenuContext = React.createContext<{
15
15
  flyoutRef?: React.Ref<HTMLLIElement>;
16
16
  setFlyoutRef?: (ref: React.Ref<HTMLLIElement>) => void;
17
17
  disableHover?: boolean;
18
+ isScrollable?: boolean;
18
19
  }>({
19
20
  menuId: null,
20
21
  parentMenu: null,
@@ -29,7 +30,8 @@ export const MenuContext = React.createContext<{
29
30
  onGetMenuHeight: () => null,
30
31
  flyoutRef: null,
31
32
  setFlyoutRef: () => null,
32
- disableHover: false
33
+ disableHover: false,
34
+ isScrollable: false
33
35
  });
34
36
 
35
37
  export const MenuItemContext = React.createContext<{
@@ -0,0 +1,34 @@
1
+ import React from 'react';
2
+ import { mount } from 'enzyme';
3
+ import { Menu } from '../Menu';
4
+
5
+ test('should render Menu successfully', () => {
6
+ const view = mount(
7
+ <Menu activeItemId={0} onSelect={jest.fn()}>
8
+ content
9
+ </Menu>
10
+ );
11
+ expect(view).toMatchSnapshot();
12
+ });
13
+
14
+ describe('with isPlain', () => {
15
+ test('should render Menu with plain styles applied', () => {
16
+ const view = mount(
17
+ <Menu activeItemId={0} onSelect={jest.fn()} isPlain>
18
+ content
19
+ </Menu>
20
+ );
21
+ expect(view.find('div.pf-m-plain')).toMatchSnapshot();
22
+ });
23
+ });
24
+
25
+ describe('with isScrollable', () => {
26
+ test('should render Menu with scrollable styles applied', () => {
27
+ const view = mount(
28
+ <Menu activeItemId={0} onSelect={jest.fn()} isScrollable>
29
+ content
30
+ </Menu>
31
+ );
32
+ expect(view.find('div.pf-m-scrollable')).toMatchSnapshot();
33
+ });
34
+ });
@@ -0,0 +1,78 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`should render Menu successfully 1`] = `
4
+ <Menu
5
+ activeItemId={0}
6
+ onSelect={[MockFunction]}
7
+ >
8
+ <Menu
9
+ activeItemId={0}
10
+ innerRef={null}
11
+ isPlain={false}
12
+ isRootMenu={true}
13
+ isScrollable={false}
14
+ onSelect={[MockFunction]}
15
+ ouiaSafe={true}
16
+ >
17
+ <KeyboardHandler
18
+ additionalKeyHandler={[Function]}
19
+ containerRef={
20
+ Object {
21
+ "current": <div
22
+ class="pf-c-menu"
23
+ data-ouia-component-id="OUIA-Generated-Menu-1"
24
+ data-ouia-component-type="PF4/Menu"
25
+ data-ouia-safe="true"
26
+ >
27
+ content
28
+ </div>,
29
+ }
30
+ }
31
+ createNavigableElements={[Function]}
32
+ getFocusableElement={[Function]}
33
+ isActiveElement={[Function]}
34
+ noEnterHandling={true}
35
+ noHorizontalArrowHandling={false}
36
+ noSpaceHandling={true}
37
+ noVerticalArrowHandling={false}
38
+ updateTabIndex={true}
39
+ validSiblingTags={
40
+ Array [
41
+ "BUTTON",
42
+ "A",
43
+ ]
44
+ }
45
+ />
46
+ <div
47
+ className="pf-c-menu"
48
+ data-ouia-component-id="OUIA-Generated-Menu-1"
49
+ data-ouia-component-type="PF4/Menu"
50
+ data-ouia-safe={true}
51
+ >
52
+ content
53
+ </div>
54
+ </Menu>
55
+ </Menu>
56
+ `;
57
+
58
+ exports[`with isPlain should render Menu with plain styles applied 1`] = `
59
+ <div
60
+ className="pf-c-menu pf-m-plain"
61
+ data-ouia-component-id="OUIA-Generated-Menu-2"
62
+ data-ouia-component-type="PF4/Menu"
63
+ data-ouia-safe={true}
64
+ >
65
+ content
66
+ </div>
67
+ `;
68
+
69
+ exports[`with isScrollable should render Menu with scrollable styles applied 1`] = `
70
+ <div
71
+ className="pf-c-menu pf-m-scrollable"
72
+ data-ouia-component-id="OUIA-Generated-Menu-3"
73
+ data-ouia-component-type="PF4/Menu"
74
+ data-ouia-safe={true}
75
+ >
76
+ content
77
+ </div>
78
+ `;
@@ -23,13 +23,14 @@ import AngleLeftIcon from '@patternfly/react-icons/dist/esm/icons/angle-left-ico
23
23
 
24
24
  ```js
25
25
  import React from 'react';
26
- import { Menu, MenuContent, MenuList, MenuItem } from '@patternfly/react-core';
26
+ import { Menu, MenuContent, MenuList, MenuItem, Checkbox } from '@patternfly/react-core';
27
27
 
28
28
  class MenuBasicList extends React.Component {
29
29
  constructor(props) {
30
30
  super(props);
31
31
  this.state = {
32
- activeItem: 0
32
+ activeItem: 0,
33
+ isPlain: false
33
34
  };
34
35
  this.onSelect = (event, itemId) => {
35
36
  console.log(`clicked ${itemId}`);
@@ -37,30 +38,51 @@ class MenuBasicList extends React.Component {
37
38
  activeItem: itemId
38
39
  });
39
40
  };
41
+ this.togglePlain = checked => {
42
+ this.setState({
43
+ isPlain: checked
44
+ });
45
+ };
40
46
  }
41
47
 
42
48
  render() {
43
- const { activeItem } = this.state;
49
+ const { activeItem, isPlain } = this.state;
44
50
  return (
45
- <Menu activeItemId={activeItem} onSelect={this.onSelect}>
46
- <MenuContent>
47
- <MenuList>
48
- <MenuItem itemId={0}>Action</MenuItem>
49
- <MenuItem
50
- itemId={1}
51
- to="#default-link2"
52
- // just for demo so that navigation is not triggered
53
- onClick={event => event.preventDefault()}
54
- >
55
- Link
56
- </MenuItem>
57
- <MenuItem isDisabled>Disabled action</MenuItem>
58
- <MenuItem isDisabled to="#default-link4">
59
- Disabled link
60
- </MenuItem>
61
- </MenuList>
62
- </MenuContent>
63
- </Menu>
51
+ <React.Fragment>
52
+ <Menu
53
+ activeItemId={activeItem}
54
+ onSelect={this.onSelect}
55
+ isPlain={isPlain}
56
+ >
57
+ <MenuContent>
58
+ <MenuList>
59
+ <MenuItem itemId={0}>Action</MenuItem>
60
+ <MenuItem
61
+ itemId={1}
62
+ to="#default-link2"
63
+ // just for demo so that navigation is not triggered
64
+ onClick={event => event.preventDefault()}
65
+ >
66
+ Link
67
+ </MenuItem>
68
+ <MenuItem isDisabled>Disabled action</MenuItem>
69
+ <MenuItem isDisabled to="#default-link4">
70
+ Disabled link
71
+ </MenuItem>
72
+ </MenuList>
73
+ </MenuContent>
74
+ </Menu>
75
+ <div style={{ marginTop: 20 }}>
76
+ <Checkbox
77
+ label="Plain menu"
78
+ isChecked={isPlain}
79
+ onChange={this.togglePlain}
80
+ aria-label="plain menu checkbox"
81
+ id="toggle-plain"
82
+ name="toggle-plain"
83
+ />
84
+ </div>
85
+ </React.Fragment>
64
86
  );
65
87
  }
66
88
  }
@@ -1254,8 +1276,69 @@ class MenuBasicList extends React.Component {
1254
1276
  render() {
1255
1277
  const { activeItem } = this.state;
1256
1278
  return (
1257
- <Menu activeItemId={activeItem} onSelect={this.onSelect}>
1258
- <MenuContent menuHeight="300px">
1279
+ <Menu activeItemId={activeItem} onSelect={this.onSelect} isScrollable>
1280
+ <MenuContent>
1281
+ <MenuList>
1282
+ <MenuItem>Action 1</MenuItem>
1283
+ <MenuItem>Action 2</MenuItem>
1284
+ <MenuItem>Action 3</MenuItem>
1285
+ <MenuItem>Action 4</MenuItem>
1286
+ <MenuItem>Action 5</MenuItem>
1287
+ <MenuItem>Action 6</MenuItem>
1288
+ <MenuItem>Action 7</MenuItem>
1289
+ <MenuItem>Action 8</MenuItem>
1290
+ <MenuItem>Action 9</MenuItem>
1291
+ <MenuItem>Action 10</MenuItem>
1292
+ <MenuItem>Action 11</MenuItem>
1293
+ <MenuItem>Action 12</MenuItem>
1294
+ <MenuItem>Action 13</MenuItem>
1295
+ <MenuItem>Action 14</MenuItem>
1296
+ <MenuItem>Action 15</MenuItem>
1297
+ <MenuItem
1298
+ itemId={1}
1299
+ to="#default-link2"
1300
+ // just for demo so that navigation is not triggered
1301
+ onClick={event => event.preventDefault()}
1302
+ >
1303
+ Link
1304
+ </MenuItem>
1305
+ <MenuItem isDisabled>Disabled action</MenuItem>
1306
+ <MenuItem isDisabled to="#default-link4">
1307
+ Disabled link
1308
+ </MenuItem>
1309
+ </MenuList>
1310
+ </MenuContent>
1311
+ </Menu>
1312
+ );
1313
+ }
1314
+ }
1315
+ ```
1316
+
1317
+ ### Scrollable with custom menu height
1318
+
1319
+ ```js
1320
+ import React from 'react';
1321
+ import { Menu, MenuContent, MenuList, MenuItem } from '@patternfly/react-core';
1322
+
1323
+ class MenuBasicList extends React.Component {
1324
+ constructor(props) {
1325
+ super(props);
1326
+ this.state = {
1327
+ activeItem: 0
1328
+ };
1329
+ this.onSelect = (event, itemId) => {
1330
+ console.log(`clicked ${itemId}`);
1331
+ this.setState({
1332
+ activeItem: itemId
1333
+ });
1334
+ };
1335
+ }
1336
+
1337
+ render() {
1338
+ const { activeItem } = this.state;
1339
+ return (
1340
+ <Menu activeItemId={activeItem} onSelect={this.onSelect} isScrollable>
1341
+ <MenuContent menuHeight="200px">
1259
1342
  <MenuList>
1260
1343
  <MenuItem>Action 1</MenuItem>
1261
1344
  <MenuItem>Action 2</MenuItem>
@@ -1032,13 +1032,13 @@ exports[`slider renders slider with input above thumb 1`] = `
1032
1032
  exports[`slider renders slider with input actions 1`] = `
1033
1033
  <Slider
1034
1034
  leftActions={
1035
- <ForwardRef(Button)
1035
+ <Button
1036
1036
  aria-label="Minus"
1037
1037
  variant="plain"
1038
1038
  />
1039
1039
  }
1040
1040
  rightActions={
1041
- <ForwardRef(Button)
1041
+ <Button
1042
1042
  aria-label="Plus"
1043
1043
  variant="plain"
1044
1044
  />
@@ -8802,7 +8802,7 @@ exports[`tree view renders individual flag options successfully 1`] = `
8802
8802
  "name": "ApplicationLauncher",
8803
8803
  },
8804
8804
  Object {
8805
- "action": <ForwardRef(Button)
8805
+ "action": <Button
8806
8806
  aria-label="Folder action"
8807
8807
  variant="plain"
8808
8808
  >
@@ -8811,7 +8811,7 @@ exports[`tree view renders individual flag options successfully 1`] = `
8811
8811
  noVerticalAlign={false}
8812
8812
  size="sm"
8813
8813
  />
8814
- </ForwardRef(Button)>,
8814
+ </Button>,
8815
8815
  "children": Array [
8816
8816
  Object {
8817
8817
  "children": Array [
@@ -9624,7 +9624,7 @@ exports[`tree view renders individual flag options successfully 1`] = `
9624
9624
  </TreeViewListItem>
9625
9625
  <TreeViewListItem
9626
9626
  action={
9627
- <ForwardRef(Button)
9627
+ <Button
9628
9628
  aria-label="Folder action"
9629
9629
  variant="plain"
9630
9630
  >
@@ -9633,7 +9633,7 @@ exports[`tree view renders individual flag options successfully 1`] = `
9633
9633
  noVerticalAlign={false}
9634
9634
  size="sm"
9635
9635
  />
9636
- </ForwardRef(Button)>
9636
+ </Button>
9637
9637
  }
9638
9638
  activeItems={
9639
9639
  Array [
@@ -9661,7 +9661,7 @@ exports[`tree view renders individual flag options successfully 1`] = `
9661
9661
  isCompact={false}
9662
9662
  itemData={
9663
9663
  Object {
9664
- "action": <ForwardRef(Button)
9664
+ "action": <Button
9665
9665
  aria-label="Folder action"
9666
9666
  variant="plain"
9667
9667
  >
@@ -9670,7 +9670,7 @@ exports[`tree view renders individual flag options successfully 1`] = `
9670
9670
  noVerticalAlign={false}
9671
9671
  size="sm"
9672
9672
  />
9673
- </ForwardRef(Button)>,
9673
+ </Button>,
9674
9674
  "children": Array [
9675
9675
  Object {
9676
9676
  "children": Array [
@@ -72,13 +72,13 @@ export const WizardToggle: React.FunctionComponent<WizardToggleProps> = ({
72
72
  aria-label={ariaLabel}
73
73
  aria-expanded={isNavOpen}
74
74
  >
75
- <ol className={css(styles.wizardToggleList)}>
76
- <li className={css(styles.wizardToggleListItem)}>
75
+ <span className={css(styles.wizardToggleList)}>
76
+ <span className={css(styles.wizardToggleListItem)}>
77
77
  <span className={css(styles.wizardToggleNum)}>{activeStepIndex}</span> {activeStepName}
78
78
  {activeStepSubName && <AngleRightIcon className={css(styles.wizardToggleSeparator)} aria-hidden="true" />}
79
- </li>
80
- {activeStepSubName && <li className={css(styles.wizardToggleListItem)}>{activeStepSubName}</li>}
81
- </ol>
79
+ </span>
80
+ {activeStepSubName && <span className={css(styles.wizardToggleListItem)}>{activeStepSubName}</span>}
81
+ </span>
82
82
  <span className={css(styles.wizardToggleIcon)}>
83
83
  <CaretDownIcon aria-hidden="true" />
84
84
  </span>
@@ -8,18 +8,18 @@ exports[`WizardToggle should match snapshot (auto-generated) 1`] = `
8
8
  className="pf-c-wizard__toggle pf-m-expanded"
9
9
  onClick={[Function]}
10
10
  >
11
- <ol
11
+ <span
12
12
  className="pf-c-wizard__toggle-list"
13
13
  >
14
- <li
14
+ <span
15
15
  className="pf-c-wizard__toggle-list-item"
16
16
  >
17
17
  <span
18
18
  className="pf-c-wizard__toggle-num"
19
19
  />
20
20
 
21
- </li>
22
- </ol>
21
+ </span>
22
+ </span>
23
23
  <span
24
24
  className="pf-c-wizard__toggle-icon"
25
25
  >