@patternfly/react-core 6.0.0-alpha.100 → 6.0.0-alpha.102

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 (146) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/components/package.json +1 -1
  3. package/deprecated/package.json +1 -1
  4. package/dist/dynamic/components/AboutModal/package.json +1 -1
  5. package/dist/dynamic/components/Accordion/package.json +1 -1
  6. package/dist/dynamic/components/ActionList/package.json +1 -1
  7. package/dist/dynamic/components/Alert/package.json +1 -1
  8. package/dist/dynamic/components/Avatar/package.json +1 -1
  9. package/dist/dynamic/components/BackToTop/package.json +1 -1
  10. package/dist/dynamic/components/Backdrop/package.json +1 -1
  11. package/dist/dynamic/components/BackgroundImage/package.json +1 -1
  12. package/dist/dynamic/components/Badge/package.json +1 -1
  13. package/dist/dynamic/components/Banner/package.json +1 -1
  14. package/dist/dynamic/components/Brand/package.json +1 -1
  15. package/dist/dynamic/components/Breadcrumb/package.json +1 -1
  16. package/dist/dynamic/components/Button/package.json +1 -1
  17. package/dist/dynamic/components/CalendarMonth/package.json +1 -1
  18. package/dist/dynamic/components/Card/package.json +1 -1
  19. package/dist/dynamic/components/Checkbox/package.json +1 -1
  20. package/dist/dynamic/components/ClipboardCopy/package.json +1 -1
  21. package/dist/dynamic/components/CodeBlock/package.json +1 -1
  22. package/dist/dynamic/components/Content/package.json +1 -1
  23. package/dist/dynamic/components/DataList/package.json +1 -1
  24. package/dist/dynamic/components/DatePicker/package.json +1 -1
  25. package/dist/dynamic/components/DescriptionList/package.json +1 -1
  26. package/dist/dynamic/components/Divider/package.json +1 -1
  27. package/dist/dynamic/components/Drawer/package.json +1 -1
  28. package/dist/dynamic/components/Dropdown/package.json +1 -1
  29. package/dist/dynamic/components/DualListSelector/package.json +1 -1
  30. package/dist/dynamic/components/EmptyState/package.json +1 -1
  31. package/dist/dynamic/components/ExpandableSection/package.json +1 -1
  32. package/dist/dynamic/components/FileUpload/package.json +1 -1
  33. package/dist/dynamic/components/Form/package.json +1 -1
  34. package/dist/dynamic/components/FormSelect/package.json +1 -1
  35. package/dist/dynamic/components/HelperText/package.json +1 -1
  36. package/dist/dynamic/components/Hint/package.json +1 -1
  37. package/dist/dynamic/components/Icon/package.json +1 -1
  38. package/dist/dynamic/components/InputGroup/package.json +1 -1
  39. package/dist/dynamic/components/JumpLinks/package.json +1 -1
  40. package/dist/dynamic/components/Label/package.json +1 -1
  41. package/dist/dynamic/components/List/package.json +1 -1
  42. package/dist/dynamic/components/LoginPage/package.json +1 -1
  43. package/dist/dynamic/components/Masthead/package.json +1 -1
  44. package/dist/dynamic/components/Menu/package.json +1 -1
  45. package/dist/dynamic/components/MenuToggle/package.json +1 -1
  46. package/dist/dynamic/components/Modal/package.json +1 -1
  47. package/dist/dynamic/components/MultipleFileUpload/package.json +1 -1
  48. package/dist/dynamic/components/Nav/package.json +1 -1
  49. package/dist/dynamic/components/NotificationBadge/package.json +1 -1
  50. package/dist/dynamic/components/NotificationDrawer/package.json +1 -1
  51. package/dist/dynamic/components/NumberInput/package.json +1 -1
  52. package/dist/dynamic/components/OverflowMenu/package.json +1 -1
  53. package/dist/dynamic/components/Page/package.json +1 -1
  54. package/dist/dynamic/components/Pagination/package.json +1 -1
  55. package/dist/dynamic/components/Panel/package.json +1 -1
  56. package/dist/dynamic/components/Popover/package.json +1 -1
  57. package/dist/dynamic/components/Progress/package.json +1 -1
  58. package/dist/dynamic/components/ProgressStepper/package.json +1 -1
  59. package/dist/dynamic/components/Radio/package.json +1 -1
  60. package/dist/dynamic/components/SearchInput/package.json +1 -1
  61. package/dist/dynamic/components/Select/package.json +1 -1
  62. package/dist/dynamic/components/Sidebar/package.json +1 -1
  63. package/dist/dynamic/components/SimpleList/package.json +1 -1
  64. package/dist/dynamic/components/Skeleton/package.json +1 -1
  65. package/dist/dynamic/components/SkipToContent/package.json +1 -1
  66. package/dist/dynamic/components/Slider/package.json +1 -1
  67. package/dist/dynamic/components/Spinner/package.json +1 -1
  68. package/dist/dynamic/components/Switch/package.json +1 -1
  69. package/dist/dynamic/components/Tabs/package.json +1 -1
  70. package/dist/dynamic/components/TextArea/package.json +1 -1
  71. package/dist/dynamic/components/TextInput/package.json +1 -1
  72. package/dist/dynamic/components/TextInputGroup/package.json +1 -1
  73. package/dist/dynamic/components/Tile/package.json +1 -1
  74. package/dist/dynamic/components/TimePicker/package.json +1 -1
  75. package/dist/dynamic/components/Timestamp/package.json +1 -1
  76. package/dist/dynamic/components/Title/package.json +1 -1
  77. package/dist/dynamic/components/ToggleGroup/package.json +1 -1
  78. package/dist/dynamic/components/Toolbar/package.json +1 -1
  79. package/dist/dynamic/components/Tooltip/package.json +1 -1
  80. package/dist/dynamic/components/TreeView/package.json +1 -1
  81. package/dist/dynamic/components/Truncate/package.json +1 -1
  82. package/dist/dynamic/components/Wizard/hooks/package.json +1 -1
  83. package/dist/dynamic/components/Wizard/package.json +1 -1
  84. package/dist/dynamic/deprecated/components/Chip/package.json +1 -1
  85. package/dist/dynamic/deprecated/components/DragDrop/package.json +1 -1
  86. package/dist/dynamic/deprecated/components/DualListSelector/package.json +1 -1
  87. package/dist/dynamic/deprecated/components/Modal/package.json +1 -1
  88. package/dist/dynamic/deprecated/components/Wizard/package.json +1 -1
  89. package/dist/dynamic/deprecated/components/package.json +1 -1
  90. package/dist/dynamic/helpers/FocusTrap/FocusTrap/package.json +1 -1
  91. package/dist/dynamic/helpers/GenerateId/GenerateId/package.json +1 -1
  92. package/dist/dynamic/helpers/KeyboardHandler/package.json +1 -1
  93. package/dist/dynamic/helpers/OUIA/ouia/package.json +1 -1
  94. package/dist/dynamic/helpers/Popper/Popper/package.json +1 -1
  95. package/dist/dynamic/helpers/constants/package.json +1 -1
  96. package/dist/dynamic/helpers/datetimeUtils/package.json +1 -1
  97. package/dist/dynamic/helpers/fileUtils/package.json +1 -1
  98. package/dist/dynamic/helpers/htmlConstants/package.json +1 -1
  99. package/dist/dynamic/helpers/package.json +1 -1
  100. package/dist/dynamic/helpers/resizeObserver/package.json +1 -1
  101. package/dist/dynamic/helpers/typeUtils/package.json +1 -1
  102. package/dist/dynamic/helpers/useInterval/package.json +1 -1
  103. package/dist/dynamic/helpers/useIsomorphicLayout/package.json +1 -1
  104. package/dist/dynamic/helpers/useUnmountEffect/package.json +1 -1
  105. package/dist/dynamic/helpers/util/package.json +1 -1
  106. package/dist/dynamic/layouts/Bullseye/package.json +1 -1
  107. package/dist/dynamic/layouts/Flex/package.json +1 -1
  108. package/dist/dynamic/layouts/Gallery/package.json +1 -1
  109. package/dist/dynamic/layouts/Grid/package.json +1 -1
  110. package/dist/dynamic/layouts/Level/package.json +1 -1
  111. package/dist/dynamic/layouts/Split/package.json +1 -1
  112. package/dist/dynamic/layouts/Stack/package.json +1 -1
  113. package/dist/dynamic/styles/package.json +1 -1
  114. package/dist/esm/components/Card/CardHeader.d.ts +16 -10
  115. package/dist/esm/components/Card/CardHeader.d.ts.map +1 -1
  116. package/dist/esm/components/Card/CardHeader.js +25 -29
  117. package/dist/esm/components/Card/CardHeader.js.map +1 -1
  118. package/dist/esm/components/NotificationDrawer/NotificationDrawerListItemHeader.d.ts +2 -0
  119. package/dist/esm/components/NotificationDrawer/NotificationDrawerListItemHeader.d.ts.map +1 -1
  120. package/dist/esm/components/NotificationDrawer/NotificationDrawerListItemHeader.js +2 -2
  121. package/dist/esm/components/NotificationDrawer/NotificationDrawerListItemHeader.js.map +1 -1
  122. package/dist/js/components/Card/CardHeader.d.ts +16 -10
  123. package/dist/js/components/Card/CardHeader.d.ts.map +1 -1
  124. package/dist/js/components/Card/CardHeader.js +25 -29
  125. package/dist/js/components/Card/CardHeader.js.map +1 -1
  126. package/dist/js/components/NotificationDrawer/NotificationDrawerListItemHeader.d.ts +2 -0
  127. package/dist/js/components/NotificationDrawer/NotificationDrawerListItemHeader.d.ts.map +1 -1
  128. package/dist/js/components/NotificationDrawer/NotificationDrawerListItemHeader.js +2 -2
  129. package/dist/js/components/NotificationDrawer/NotificationDrawerListItemHeader.js.map +1 -1
  130. package/dist/umd/assets/{output-BFvJVM-B.css → output-DDZmdp2b.css} +1405 -1390
  131. package/dist/umd/react-core.min.js +2 -2
  132. package/helpers/package.json +1 -1
  133. package/layouts/package.json +1 -1
  134. package/next/package.json +1 -1
  135. package/package.json +6 -6
  136. package/src/components/Card/CardHeader.tsx +115 -93
  137. package/src/components/Card/__tests__/CardHeader.test.tsx +330 -1
  138. package/src/components/Card/examples/CardClickable.tsx +11 -21
  139. package/src/components/Card/examples/CardClickableSelectable.tsx +6 -3
  140. package/src/components/Card/examples/CardSelectable.tsx +6 -3
  141. package/src/components/Card/examples/CardSingleSelectable.tsx +6 -3
  142. package/src/components/NotificationDrawer/NotificationDrawerListItemHeader.tsx +8 -1
  143. package/src/components/NotificationDrawer/__tests__/NotificationDrawerListItemHeader.test.tsx +24 -0
  144. package/src/components/NotificationDrawer/examples/NotificationDrawerBasic.tsx +14 -21
  145. package/src/components/NotificationDrawer/examples/NotificationDrawerGroups.tsx +18 -27
  146. package/dist/styles/assets/pficon/pf-v5-pficon.woff2 +0 -0
@@ -4,10 +4,6 @@ import { Card, CardHeader, CardTitle, CardBody, Checkbox, Gallery } from '@patte
4
4
  export const CardClickable: React.FunctionComponent = () => {
5
5
  const [isSecondary, setIsSecondary] = React.useState<boolean>(false);
6
6
 
7
- const id1 = 'clickable-card-input-1';
8
- const id2 = 'clickable-card-input-2';
9
- const id3 = 'clickable-card-input-3';
10
-
11
7
  const toggleVariant = (checked: boolean) => {
12
8
  setIsSecondary(checked);
13
9
  };
@@ -24,44 +20,38 @@ export const CardClickable: React.FunctionComponent = () => {
24
20
  />
25
21
  <div style={{ marginTop: '15px' }}>
26
22
  <Gallery hasGutter>
27
- <Card id="clickable-card-example-1" isClickable variant={isSecondary ? 'secondary' : 'default'}>
23
+ <Card isClickable variant={isSecondary ? 'secondary' : 'default'}>
28
24
  <CardHeader
29
25
  selectableActions={{
30
26
  // eslint-disable-next-line no-console
31
- onClickAction: () => console.log(`${id1} clicked`),
32
- selectableActionId: id1,
33
- selectableActionAriaLabelledby: 'clickable-card-example-1',
34
- name: 'clickable-card-example'
27
+ onClickAction: () => console.log(`First card in actionable example clicked`),
28
+ selectableActionAriaLabelledby: 'clickable-card-example-title-1'
35
29
  }}
36
30
  >
37
- <CardTitle>First card</CardTitle>
31
+ <CardTitle id="clickable-card-example-title-1">First card in the actionable example</CardTitle>
38
32
  </CardHeader>
39
33
  <CardBody>This card performs an action on click.</CardBody>
40
34
  </Card>
41
- <Card id="clickable-card-example-2" isClickable variant={isSecondary ? 'secondary' : 'default'}>
35
+ <Card isClickable variant={isSecondary ? 'secondary' : 'default'}>
42
36
  <CardHeader
43
37
  selectableActions={{
44
38
  to: '#',
45
- selectableActionId: id2,
46
- selectableActionAriaLabelledby: 'clickable-card-example-2',
47
- name: 'clickable-card-example'
39
+ selectableActionAriaLabelledby: 'clickable-card-example-title-2'
48
40
  }}
49
41
  >
50
- <CardTitle>Second card</CardTitle>
42
+ <CardTitle id="clickable-card-example-title-2">Second card in the actionable example</CardTitle>
51
43
  </CardHeader>
52
44
  <CardBody>This card can navigate to a link on click.</CardBody>
53
45
  </Card>
54
- <Card id="clickable-card-example-3" isClickable isDisabled variant={isSecondary ? 'secondary' : 'default'}>
46
+ <Card isClickable isDisabled variant={isSecondary ? 'secondary' : 'default'}>
55
47
  <CardHeader
56
48
  selectableActions={{
57
49
  // eslint-disable-next-line no-console
58
- onClickAction: () => console.log(`${id3} clicked`),
59
- selectableActionId: id3,
60
- selectableActionAriaLabelledby: 'clickable-card-example-3',
61
- name: 'clickable-card-example'
50
+ onClickAction: () => console.log(`Third card in actionable example clicked`),
51
+ selectableActionAriaLabelledby: 'clickable-card-example-title-3'
62
52
  }}
63
53
  >
64
- <CardTitle>Third card</CardTitle>
54
+ <CardTitle id="clickable-card-example-title-3">Third card in the actionable example</CardTitle>
65
55
  </CardHeader>
66
56
  <CardBody>This card is clickable but disabled.</CardBody>
67
57
  </Card>
@@ -61,7 +61,8 @@ export const CardClickable: React.FunctionComponent = () => {
61
61
  selectableActionId: id1,
62
62
  selectableActionAriaLabelledby: 'clickable-selectable-card-example-1',
63
63
  name: id1,
64
- onChange
64
+ onChange,
65
+ hasNoOffset: true
65
66
  }}
66
67
  >
67
68
  <CardTitle>
@@ -84,7 +85,8 @@ export const CardClickable: React.FunctionComponent = () => {
84
85
  selectableActionId: id2,
85
86
  selectableActionAriaLabelledby: 'clickable-selectable-card-example-2',
86
87
  name: id2,
87
- onChange
88
+ onChange,
89
+ hasNoOffset: true
88
90
  }}
89
91
  >
90
92
  <CardTitle>Second Card</CardTitle>
@@ -110,7 +112,8 @@ export const CardClickable: React.FunctionComponent = () => {
110
112
  selectableActionId: id3,
111
113
  selectableActionAriaLabelledby: 'clickable-selectable-card-example-3',
112
114
  name: id3,
113
- onChange
115
+ onChange,
116
+ hasNoOffset: true
114
117
  }}
115
118
  >
116
119
  <CardTitle>
@@ -53,7 +53,8 @@ export const SelectableCard: React.FunctionComponent = () => {
53
53
  selectableActionId: id1,
54
54
  selectableActionAriaLabelledby: 'selectable-card-example-1',
55
55
  name: id1,
56
- onChange
56
+ onChange,
57
+ hasNoOffset: true
57
58
  }}
58
59
  >
59
60
  <CardTitle>First card</CardTitle>
@@ -71,7 +72,8 @@ export const SelectableCard: React.FunctionComponent = () => {
71
72
  selectableActionId: id2,
72
73
  selectableActionAriaLabelledby: 'selectable-card-example-2',
73
74
  name: id2,
74
- onChange
75
+ onChange,
76
+ hasNoOffset: true
75
77
  }}
76
78
  >
77
79
  <CardTitle>Second card</CardTitle>
@@ -90,7 +92,8 @@ export const SelectableCard: React.FunctionComponent = () => {
90
92
  selectableActionId: id3,
91
93
  selectableActionAriaLabelledby: 'selectable-card-example-3',
92
94
  name: id3,
93
- onChange
95
+ onChange,
96
+ hasNoOffset: true
94
97
  }}
95
98
  >
96
99
  <CardTitle>Third card</CardTitle>
@@ -20,7 +20,8 @@ export const SingleSelectableCard: React.FunctionComponent = () => {
20
20
  selectableActionAriaLabelledby: 'single-selectable-card-example-1',
21
21
  name: 'single-selectable-card-example',
22
22
  variant: 'single',
23
- onChange
23
+ onChange,
24
+ hasNoOffset: true
24
25
  }}
25
26
  >
26
27
  <CardTitle>First card</CardTitle>
@@ -34,7 +35,8 @@ export const SingleSelectableCard: React.FunctionComponent = () => {
34
35
  selectableActionAriaLabelledby: 'single-selectable-card-example-2',
35
36
  name: 'single-selectable-card-example',
36
37
  variant: 'single',
37
- onChange
38
+ onChange,
39
+ hasNoOffset: true
38
40
  }}
39
41
  >
40
42
  <CardTitle>Second card</CardTitle>
@@ -48,7 +50,8 @@ export const SingleSelectableCard: React.FunctionComponent = () => {
48
50
  selectableActionAriaLabelledby: 'single-selectable-card-example-3',
49
51
  name: 'single-selectable-card-example',
50
52
  variant: 'single',
51
- onChange
53
+ onChange,
54
+ hasNoOffset: true
52
55
  }}
53
56
  >
54
57
  <CardTitle>Third card</CardTitle>
@@ -53,6 +53,8 @@ export interface NotificationDrawerListItemHeaderProps extends React.HTMLProps<H
53
53
  | 'right-end';
54
54
  /** Sets the heading level to use for the list item header title. Default is h2. */
55
55
  headingLevel?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
56
+ /** Removes the offset of the notification drawer actions. */
57
+ actionHasNoOffset?: boolean;
56
58
  }
57
59
 
58
60
  export const NotificationDrawerListItemHeader: React.FunctionComponent<NotificationDrawerListItemHeaderProps> = ({
@@ -65,6 +67,7 @@ export const NotificationDrawerListItemHeader: React.FunctionComponent<Notificat
65
67
  truncateTitle = 0,
66
68
  tooltipPosition,
67
69
  headingLevel: HeadingLevel = 'h2',
70
+ actionHasNoOffset = false,
68
71
  ...props
69
72
  }: NotificationDrawerListItemHeaderProps) => {
70
73
  const titleRef = React.useRef(null);
@@ -103,7 +106,11 @@ export const NotificationDrawerListItemHeader: React.FunctionComponent<Notificat
103
106
  Title
104
107
  )}
105
108
  </div>
106
- {children && <div className={css(styles.notificationDrawerListItemAction)}>{children}</div>}
109
+ {children && (
110
+ <div className={css(styles.notificationDrawerListItemAction, actionHasNoOffset && styles.modifiers.noOffset)}>
111
+ {children}
112
+ </div>
113
+ )}
107
114
  </React.Fragment>
108
115
  );
109
116
  };
@@ -5,6 +5,7 @@ import '@testing-library/jest-dom';
5
5
 
6
6
  import BellIcon from '@patternfly/react-icons/dist/esm/icons/bell-icon';
7
7
  import { NotificationDrawerListItemHeader } from '../NotificationDrawerListItemHeader';
8
+ import styles from '@patternfly/react-styles/css/components/NotificationDrawer/notification-drawer';
8
9
 
9
10
  describe('NotificationDrawerListItemHeader', () => {
10
11
  test('renders with PatternFly Core styles', () => {
@@ -48,4 +49,27 @@ describe('NotificationDrawerListItemHeader', () => {
48
49
 
49
50
  expect(screen.getByText('Pod quit unexpectedly')).toHaveClass('pf-m-truncate');
50
51
  });
52
+
53
+ test(`renders with ${styles.modifiers.noOffset} if actionHasNoOffset={true} is passed`, () => {
54
+ render(
55
+ <NotificationDrawerListItemHeader title="Pod quit unexpectedly" actionHasNoOffset>
56
+ test
57
+ </NotificationDrawerListItemHeader>
58
+ );
59
+ expect(screen.getByText('test')).toHaveClass(styles.modifiers.noOffset);
60
+ });
61
+
62
+ test(`does not render with ${styles.modifiers.noOffset} if actionHasNoOffset={false} is passed`, () => {
63
+ render(
64
+ <NotificationDrawerListItemHeader title="Pod quit unexpectedly" actionHasNoOffset={false}>
65
+ test
66
+ </NotificationDrawerListItemHeader>
67
+ );
68
+ expect(screen.getByText('test')).not.toHaveClass(styles.modifiers.noOffset);
69
+ });
70
+
71
+ test(`does not render with ${styles.modifiers.noOffset} if actionHasNoOffset is not passed`, () => {
72
+ render(<NotificationDrawerListItemHeader title="Pod quit unexpectedly">test</NotificationDrawerListItemHeader>);
73
+ expect(screen.getByText('test')).not.toHaveClass(styles.modifiers.noOffset);
74
+ });
51
75
  });
@@ -64,9 +64,8 @@ export const NotificationDrawerBasic: React.FunctionComponent = () => {
64
64
  onClick={onToggle(0)}
65
65
  variant="plain"
66
66
  aria-label={`Basic example header kebab toggle`}
67
- >
68
- <EllipsisVIcon aria-hidden="true" />
69
- </MenuToggle>
67
+ icon={<EllipsisVIcon aria-hidden="true" />}
68
+ />
70
69
  )}
71
70
  >
72
71
  <DropdownList>{dropdownItems}</DropdownList>
@@ -92,9 +91,8 @@ export const NotificationDrawerBasic: React.FunctionComponent = () => {
92
91
  onClick={onToggle(1)}
93
92
  variant="plain"
94
93
  aria-label={`Basic example notification 1 kebab toggle`}
95
- >
96
- <EllipsisVIcon aria-hidden="true" />
97
- </MenuToggle>
94
+ icon={<EllipsisVIcon aria-hidden="true" />}
95
+ />
98
96
  )}
99
97
  >
100
98
  <DropdownList>{dropdownItems}</DropdownList>
@@ -122,9 +120,8 @@ export const NotificationDrawerBasic: React.FunctionComponent = () => {
122
120
  onClick={onToggle(2)}
123
121
  variant="plain"
124
122
  aria-label={`Basic example notification 2 kebab toggle`}
125
- >
126
- <EllipsisVIcon aria-hidden="true" />
127
- </MenuToggle>
123
+ icon={<EllipsisVIcon aria-hidden="true" />}
124
+ />
128
125
  )}
129
126
  >
130
127
  <DropdownList>{dropdownItems}</DropdownList>
@@ -154,9 +151,8 @@ export const NotificationDrawerBasic: React.FunctionComponent = () => {
154
151
  onClick={onToggle(3)}
155
152
  variant="plain"
156
153
  aria-label={`Basic example notification 3 kebab toggle`}
157
- >
158
- <EllipsisVIcon aria-hidden="true" />
159
- </MenuToggle>
154
+ icon={<EllipsisVIcon aria-hidden="true" />}
155
+ />
160
156
  )}
161
157
  >
162
158
  <DropdownList>{dropdownItems}</DropdownList>
@@ -185,9 +181,8 @@ export const NotificationDrawerBasic: React.FunctionComponent = () => {
185
181
  onClick={onToggle(4)}
186
182
  variant="plain"
187
183
  aria-label={`Basic example notification 4 kebab toggle`}
188
- >
189
- <EllipsisVIcon aria-hidden="true" />
190
- </MenuToggle>
184
+ icon={<EllipsisVIcon aria-hidden="true" />}
185
+ />
191
186
  )}
192
187
  >
193
188
  <DropdownList>{dropdownItems}</DropdownList>
@@ -215,9 +210,8 @@ export const NotificationDrawerBasic: React.FunctionComponent = () => {
215
210
  onClick={onToggle(5)}
216
211
  variant="plain"
217
212
  aria-label={`Basic example notification 5 kebab toggle`}
218
- >
219
- <EllipsisVIcon aria-hidden="true" />
220
- </MenuToggle>
213
+ icon={<EllipsisVIcon aria-hidden="true" />}
214
+ />
221
215
  )}
222
216
  >
223
217
  <DropdownList>{dropdownItems}</DropdownList>
@@ -241,9 +235,8 @@ export const NotificationDrawerBasic: React.FunctionComponent = () => {
241
235
  onClick={onToggle(6)}
242
236
  variant="plain"
243
237
  aria-label={`Basic example notification 6 kebab toggle`}
244
- >
245
- <EllipsisVIcon aria-hidden="true" />
246
- </MenuToggle>
238
+ icon={<EllipsisVIcon aria-hidden="true" />}
239
+ />
247
240
  )}
248
241
  >
249
242
  <DropdownList>{dropdownItems}</DropdownList>
@@ -89,9 +89,8 @@ export const NotificationDrawerGroups: React.FunctionComponent = () => {
89
89
  onClick={() => onToggle('groups-kebab-toggle-1')}
90
90
  variant="plain"
91
91
  aria-label={`Groups example header kebab toggle`}
92
- >
93
- <EllipsisVIcon aria-hidden="true" />
94
- </MenuToggle>
92
+ icon={<EllipsisVIcon aria-hidden="true" />}
93
+ />
95
94
  )}
96
95
  >
97
96
  <DropdownList>{dropdownItems}</DropdownList>
@@ -125,9 +124,8 @@ export const NotificationDrawerGroups: React.FunctionComponent = () => {
125
124
  onClick={() => onToggle('groups-kebab-toggle-2')}
126
125
  variant="plain"
127
126
  aria-label={`Groups example group 1 notification 1 kebab toggle`}
128
- >
129
- <EllipsisVIcon aria-hidden="true" />
130
- </MenuToggle>
127
+ icon={<EllipsisVIcon aria-hidden="true" />}
128
+ />
131
129
  )}
132
130
  >
133
131
  <DropdownList>{dropdownItems}</DropdownList>
@@ -156,9 +154,8 @@ export const NotificationDrawerGroups: React.FunctionComponent = () => {
156
154
  onClick={() => onToggle('groups-kebab-toggle-3')}
157
155
  variant="plain"
158
156
  aria-label={`Groups example group 1 notification 2 kebab toggle`}
159
- >
160
- <EllipsisVIcon aria-hidden="true" />
161
- </MenuToggle>
157
+ icon={<EllipsisVIcon aria-hidden="true" />}
158
+ />
162
159
  )}
163
160
  >
164
161
  <DropdownList>{dropdownItems}</DropdownList>
@@ -188,9 +185,8 @@ export const NotificationDrawerGroups: React.FunctionComponent = () => {
188
185
  onClick={() => onToggle('groups-kebab-toggle-4')}
189
186
  variant="plain"
190
187
  aria-label={`Groups example group 1 notification 3 kebab toggle`}
191
- >
192
- <EllipsisVIcon aria-hidden="true" />
193
- </MenuToggle>
188
+ icon={<EllipsisVIcon aria-hidden="true" />}
189
+ />
194
190
  )}
195
191
  >
196
192
  <DropdownList>{dropdownItems}</DropdownList>
@@ -219,9 +215,8 @@ export const NotificationDrawerGroups: React.FunctionComponent = () => {
219
215
  onClick={() => onToggle('groups-kebab-toggle-5')}
220
216
  variant="plain"
221
217
  aria-label={`Groups example group 1 notification 4 kebab toggle`}
222
- >
223
- <EllipsisVIcon aria-hidden="true" />
224
- </MenuToggle>
218
+ icon={<EllipsisVIcon aria-hidden="true" />}
219
+ />
225
220
  )}
226
221
  >
227
222
  <DropdownList>{dropdownItems}</DropdownList>
@@ -259,9 +254,8 @@ export const NotificationDrawerGroups: React.FunctionComponent = () => {
259
254
  onClick={() => onToggle('groups-kebab-toggle-6')}
260
255
  variant="plain"
261
256
  aria-label={`Groups example group 2 notification 1 kebab toggle`}
262
- >
263
- <EllipsisVIcon aria-hidden="true" />
264
- </MenuToggle>
257
+ icon={<EllipsisVIcon aria-hidden="true" />}
258
+ />
265
259
  )}
266
260
  >
267
261
  <DropdownList>{dropdownItems}</DropdownList>
@@ -290,9 +284,8 @@ export const NotificationDrawerGroups: React.FunctionComponent = () => {
290
284
  onClick={() => onToggle('groups-kebab-toggle-7')}
291
285
  variant="plain"
292
286
  aria-label={`Groups example group 2 notification 2 kebab toggle`}
293
- >
294
- <EllipsisVIcon aria-hidden="true" />
295
- </MenuToggle>
287
+ icon={<EllipsisVIcon aria-hidden="true" />}
288
+ />
296
289
  )}
297
290
  >
298
291
  <DropdownList>{dropdownItems}</DropdownList>
@@ -322,9 +315,8 @@ export const NotificationDrawerGroups: React.FunctionComponent = () => {
322
315
  onClick={() => onToggle('groups-kebab-toggle-8')}
323
316
  variant="plain"
324
317
  aria-label={`Groups example group 2 notification 3 kebab toggle`}
325
- >
326
- <EllipsisVIcon aria-hidden="true" />
327
- </MenuToggle>
318
+ icon={<EllipsisVIcon aria-hidden="true" />}
319
+ />
328
320
  )}
329
321
  >
330
322
  <DropdownList>{dropdownItems}</DropdownList>
@@ -353,9 +345,8 @@ export const NotificationDrawerGroups: React.FunctionComponent = () => {
353
345
  onClick={() => onToggle('groups-kebab-toggle-9')}
354
346
  variant="plain"
355
347
  aria-label={`Groups example group 2 notification 4 kebab toggle`}
356
- >
357
- <EllipsisVIcon aria-hidden="true" />
358
- </MenuToggle>
348
+ icon={<EllipsisVIcon aria-hidden="true" />}
349
+ />
359
350
  )}
360
351
  >
361
352
  <DropdownList>{dropdownItems}</DropdownList>