@patternfly/react-core 6.0.0-alpha.20 → 6.0.0-alpha.21

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 (194) hide show
  1. package/CHANGELOG.md +9 -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/Chip/package.json +1 -1
  21. package/dist/dynamic/components/ClipboardCopy/package.json +1 -1
  22. package/dist/dynamic/components/CodeBlock/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/DragDrop/package.json +1 -1
  28. package/dist/dynamic/components/Drawer/package.json +1 -1
  29. package/dist/dynamic/components/Dropdown/package.json +1 -1
  30. package/dist/dynamic/components/DualListSelector/package.json +1 -1
  31. package/dist/dynamic/components/EmptyState/package.json +1 -1
  32. package/dist/dynamic/components/ExpandableSection/package.json +1 -1
  33. package/dist/dynamic/components/FileUpload/package.json +1 -1
  34. package/dist/dynamic/components/Form/package.json +1 -1
  35. package/dist/dynamic/components/FormSelect/package.json +1 -1
  36. package/dist/dynamic/components/HelperText/package.json +1 -1
  37. package/dist/dynamic/components/Hint/package.json +1 -1
  38. package/dist/dynamic/components/Icon/package.json +1 -1
  39. package/dist/dynamic/components/InputGroup/package.json +1 -1
  40. package/dist/dynamic/components/JumpLinks/package.json +1 -1
  41. package/dist/dynamic/components/Label/package.json +1 -1
  42. package/dist/dynamic/components/List/package.json +1 -1
  43. package/dist/dynamic/components/LoginPage/package.json +1 -1
  44. package/dist/dynamic/components/Masthead/package.json +1 -1
  45. package/dist/dynamic/components/Menu/package.json +1 -1
  46. package/dist/dynamic/components/MenuToggle/package.json +1 -1
  47. package/dist/dynamic/components/Modal/package.json +1 -1
  48. package/dist/dynamic/components/MultipleFileUpload/package.json +1 -1
  49. package/dist/dynamic/components/Nav/package.json +1 -1
  50. package/dist/dynamic/components/NotificationBadge/package.json +1 -1
  51. package/dist/dynamic/components/NotificationDrawer/package.json +1 -1
  52. package/dist/dynamic/components/NumberInput/package.json +1 -1
  53. package/dist/dynamic/components/OverflowMenu/package.json +1 -1
  54. package/dist/dynamic/components/Page/package.json +1 -1
  55. package/dist/dynamic/components/Pagination/package.json +1 -1
  56. package/dist/dynamic/components/Panel/package.json +1 -1
  57. package/dist/dynamic/components/Popover/package.json +1 -1
  58. package/dist/dynamic/components/Progress/package.json +1 -1
  59. package/dist/dynamic/components/ProgressStepper/package.json +1 -1
  60. package/dist/dynamic/components/Radio/package.json +1 -1
  61. package/dist/dynamic/components/SearchInput/package.json +1 -1
  62. package/dist/dynamic/components/Select/package.json +1 -1
  63. package/dist/dynamic/components/Sidebar/package.json +1 -1
  64. package/dist/dynamic/components/SimpleList/package.json +1 -1
  65. package/dist/dynamic/components/Skeleton/package.json +1 -1
  66. package/dist/dynamic/components/SkipToContent/package.json +1 -1
  67. package/dist/dynamic/components/Slider/package.json +1 -1
  68. package/dist/dynamic/components/Spinner/package.json +1 -1
  69. package/dist/dynamic/components/Switch/package.json +1 -1
  70. package/dist/dynamic/components/Tabs/package.json +1 -1
  71. package/dist/dynamic/components/Text/package.json +1 -1
  72. package/dist/dynamic/components/TextArea/package.json +1 -1
  73. package/dist/dynamic/components/TextInput/package.json +1 -1
  74. package/dist/dynamic/components/TextInputGroup/package.json +1 -1
  75. package/dist/dynamic/components/Tile/package.json +1 -1
  76. package/dist/dynamic/components/TimePicker/package.json +1 -1
  77. package/dist/dynamic/components/Timestamp/package.json +1 -1
  78. package/dist/dynamic/components/Title/package.json +1 -1
  79. package/dist/dynamic/components/ToggleGroup/package.json +1 -1
  80. package/dist/dynamic/components/Toolbar/package.json +1 -1
  81. package/dist/dynamic/components/Tooltip/package.json +1 -1
  82. package/dist/dynamic/components/TreeView/package.json +1 -1
  83. package/dist/dynamic/components/Truncate/package.json +1 -1
  84. package/dist/dynamic/components/Wizard/hooks/package.json +1 -1
  85. package/dist/dynamic/components/Wizard/package.json +1 -1
  86. package/dist/dynamic/deprecated/components/ApplicationLauncher/package.json +1 -1
  87. package/dist/dynamic/deprecated/components/ContextSelector/package.json +1 -1
  88. package/dist/dynamic/deprecated/components/Dropdown/package.json +1 -1
  89. package/dist/dynamic/deprecated/components/OptionsMenu/package.json +1 -1
  90. package/dist/dynamic/deprecated/components/PageHeader/package.json +1 -1
  91. package/dist/dynamic/deprecated/components/Select/package.json +1 -1
  92. package/dist/dynamic/deprecated/components/Wizard/package.json +1 -1
  93. package/dist/dynamic/deprecated/components/package.json +1 -1
  94. package/dist/dynamic/helpers/FocusTrap/FocusTrap/package.json +1 -1
  95. package/dist/dynamic/helpers/GenerateId/GenerateId/package.json +1 -1
  96. package/dist/dynamic/helpers/KeyboardHandler/package.json +1 -1
  97. package/dist/dynamic/helpers/OUIA/ouia/package.json +1 -1
  98. package/dist/dynamic/helpers/Popper/Popper/package.json +1 -1
  99. package/dist/dynamic/helpers/constants/package.json +1 -1
  100. package/dist/dynamic/helpers/datetimeUtils/package.json +1 -1
  101. package/dist/dynamic/helpers/favorites/package.json +1 -1
  102. package/dist/dynamic/helpers/fileUtils/package.json +1 -1
  103. package/dist/dynamic/helpers/htmlConstants/package.json +1 -1
  104. package/dist/dynamic/helpers/package.json +1 -1
  105. package/dist/dynamic/helpers/resizeObserver/package.json +1 -1
  106. package/dist/dynamic/helpers/typeUtils/package.json +1 -1
  107. package/dist/dynamic/helpers/useInterval/package.json +1 -1
  108. package/dist/dynamic/helpers/useIsomorphicLayout/package.json +1 -1
  109. package/dist/dynamic/helpers/useUnmountEffect/package.json +1 -1
  110. package/dist/dynamic/helpers/util/package.json +1 -1
  111. package/dist/dynamic/layouts/Bullseye/package.json +1 -1
  112. package/dist/dynamic/layouts/Flex/package.json +1 -1
  113. package/dist/dynamic/layouts/Gallery/package.json +1 -1
  114. package/dist/dynamic/layouts/Grid/package.json +1 -1
  115. package/dist/dynamic/layouts/Level/package.json +1 -1
  116. package/dist/dynamic/layouts/Split/package.json +1 -1
  117. package/dist/dynamic/layouts/Stack/package.json +1 -1
  118. package/dist/dynamic/next/components/Modal/package.json +1 -1
  119. package/dist/dynamic/next/components/package.json +1 -1
  120. package/dist/dynamic/styles/package.json +1 -1
  121. package/dist/esm/components/Icon/Icon.d.ts +4 -3
  122. package/dist/esm/components/Icon/Icon.d.ts.map +1 -1
  123. package/dist/esm/components/Icon/Icon.js.map +1 -1
  124. package/dist/esm/components/MultipleFileUpload/MultipleFileUploadStatus.js +2 -2
  125. package/dist/esm/components/MultipleFileUpload/MultipleFileUploadStatus.js.map +1 -1
  126. package/dist/esm/components/MultipleFileUpload/MultipleFileUploadStatusItem.d.ts.map +1 -1
  127. package/dist/esm/components/MultipleFileUpload/MultipleFileUploadStatusItem.js +3 -3
  128. package/dist/esm/components/MultipleFileUpload/MultipleFileUploadStatusItem.js.map +1 -1
  129. package/dist/esm/components/NotificationBadge/NotificationBadge.d.ts.map +1 -1
  130. package/dist/esm/components/NotificationBadge/NotificationBadge.js +7 -13
  131. package/dist/esm/components/NotificationBadge/NotificationBadge.js.map +1 -1
  132. package/dist/esm/components/Sidebar/Sidebar.d.ts +4 -0
  133. package/dist/esm/components/Sidebar/Sidebar.d.ts.map +1 -1
  134. package/dist/esm/components/Sidebar/Sidebar.js +5 -0
  135. package/dist/esm/components/Sidebar/Sidebar.js.map +1 -1
  136. package/dist/esm/components/Sidebar/SidebarContent.d.ts +2 -0
  137. package/dist/esm/components/Sidebar/SidebarContent.d.ts.map +1 -1
  138. package/dist/esm/components/Sidebar/SidebarContent.js +2 -2
  139. package/dist/esm/components/Sidebar/SidebarContent.js.map +1 -1
  140. package/dist/esm/components/Sidebar/SidebarPanel.d.ts +2 -0
  141. package/dist/esm/components/Sidebar/SidebarPanel.d.ts.map +1 -1
  142. package/dist/esm/components/Sidebar/SidebarPanel.js +2 -2
  143. package/dist/esm/components/Sidebar/SidebarPanel.js.map +1 -1
  144. package/dist/js/components/Icon/Icon.d.ts +4 -3
  145. package/dist/js/components/Icon/Icon.d.ts.map +1 -1
  146. package/dist/js/components/Icon/Icon.js.map +1 -1
  147. package/dist/js/components/MultipleFileUpload/MultipleFileUploadStatus.js +2 -2
  148. package/dist/js/components/MultipleFileUpload/MultipleFileUploadStatus.js.map +1 -1
  149. package/dist/js/components/MultipleFileUpload/MultipleFileUploadStatusItem.d.ts.map +1 -1
  150. package/dist/js/components/MultipleFileUpload/MultipleFileUploadStatusItem.js +3 -3
  151. package/dist/js/components/MultipleFileUpload/MultipleFileUploadStatusItem.js.map +1 -1
  152. package/dist/js/components/NotificationBadge/NotificationBadge.d.ts.map +1 -1
  153. package/dist/js/components/NotificationBadge/NotificationBadge.js +7 -13
  154. package/dist/js/components/NotificationBadge/NotificationBadge.js.map +1 -1
  155. package/dist/js/components/Sidebar/Sidebar.d.ts +4 -0
  156. package/dist/js/components/Sidebar/Sidebar.d.ts.map +1 -1
  157. package/dist/js/components/Sidebar/Sidebar.js +6 -1
  158. package/dist/js/components/Sidebar/Sidebar.js.map +1 -1
  159. package/dist/js/components/Sidebar/SidebarContent.d.ts +2 -0
  160. package/dist/js/components/Sidebar/SidebarContent.d.ts.map +1 -1
  161. package/dist/js/components/Sidebar/SidebarContent.js +2 -2
  162. package/dist/js/components/Sidebar/SidebarContent.js.map +1 -1
  163. package/dist/js/components/Sidebar/SidebarPanel.d.ts +2 -0
  164. package/dist/js/components/Sidebar/SidebarPanel.d.ts.map +1 -1
  165. package/dist/js/components/Sidebar/SidebarPanel.js +2 -2
  166. package/dist/js/components/Sidebar/SidebarPanel.js.map +1 -1
  167. package/dist/umd/react-core.min.js +2 -2
  168. package/helpers/package.json +1 -1
  169. package/layouts/package.json +1 -1
  170. package/next/package.json +1 -1
  171. package/package.json +3 -2
  172. package/src/components/Icon/Icon.tsx +20 -3
  173. package/src/components/Icon/__tests__/Icon.test.tsx +49 -30
  174. package/src/components/Icon/examples/BodyIconSizes.tsx +17 -0
  175. package/src/components/Icon/examples/HeadingIconSizes.tsx +26 -0
  176. package/src/components/Icon/examples/Icon.md +18 -2
  177. package/src/components/Icon/examples/IconContentSizes.tsx +4 -4
  178. package/src/components/Icon/examples/{IconSizes.tsx → StandaloneIconSizes.tsx} +7 -1
  179. package/src/components/MultipleFileUpload/MultipleFileUploadStatus.tsx +2 -2
  180. package/src/components/MultipleFileUpload/MultipleFileUploadStatusItem.tsx +3 -4
  181. package/src/components/MultipleFileUpload/__tests__/__snapshots__/MultipleFileUploadStatus.test.tsx.snap +4 -4
  182. package/src/components/MultipleFileUpload/__tests__/__snapshots__/MultipleFileUploadStatusItem.test.tsx.snap +40 -24
  183. package/src/components/NotificationBadge/NotificationBadge.tsx +19 -15
  184. package/src/components/NotificationBadge/__tests__/NotificationBadge.test.tsx +4 -4
  185. package/src/components/NotificationBadge/__tests__/__snapshots__/NotificationBadge.test.tsx.snap +10 -22
  186. package/src/components/NotificationBadge/examples/NotificationBadge.md +0 -1
  187. package/src/components/NotificationBadge/examples/NotificationBadgeBasic.tsx +2 -2
  188. package/src/components/NotificationBadge/examples/NotificationBadgeWithCount.tsx +2 -2
  189. package/src/components/Sidebar/Sidebar.tsx +5 -0
  190. package/src/components/Sidebar/SidebarContent.tsx +4 -0
  191. package/src/components/Sidebar/SidebarPanel.tsx +4 -0
  192. package/src/components/Sidebar/__tests__/SidebarContent.test.tsx +5 -0
  193. package/src/components/Sidebar/__tests__/SidebarPanel.test.tsx +5 -0
  194. package/src/components/NotificationBadge/examples/notificationBadge.css +0 -4
@@ -1 +1 @@
1
- {"name":"@patternfly/react-core-helpers","main":"../dist/js/helpers/index.js","module":"../dist/esm/helpers/index.js","typings":"../dist/esm/helpers/index.d.ts","version":"6.0.0-alpha.19","private":true}
1
+ {"name":"@patternfly/react-core-helpers","main":"../dist/js/helpers/index.js","module":"../dist/esm/helpers/index.js","typings":"../dist/esm/helpers/index.d.ts","version":"6.0.0-alpha.20","private":true}
@@ -1 +1 @@
1
- {"name":"@patternfly/react-core-layouts","main":"../dist/js/layouts/index.js","module":"../dist/esm/layouts/index.js","typings":"../dist/esm/layouts/index.d.ts","version":"6.0.0-alpha.19","private":true}
1
+ {"name":"@patternfly/react-core-layouts","main":"../dist/js/layouts/index.js","module":"../dist/esm/layouts/index.js","typings":"../dist/esm/layouts/index.d.ts","version":"6.0.0-alpha.20","private":true}
package/next/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"@patternfly/react-core-next","main":"../dist/js/next/index.js","module":"../dist/esm/next/index.js","typings":"../dist/esm/next/index.d.ts","version":"6.0.0-alpha.19","private":true}
1
+ {"name":"@patternfly/react-core-next","main":"../dist/js/next/index.js","module":"../dist/esm/next/index.js","typings":"../dist/esm/next/index.d.ts","version":"6.0.0-alpha.20","private":true}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@patternfly/react-core",
3
- "version": "6.0.0-alpha.20",
3
+ "version": "6.0.0-alpha.21",
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",
@@ -58,6 +58,7 @@
58
58
  "@rollup/plugin-commonjs": "^25.0.0",
59
59
  "@rollup/plugin-node-resolve": "^15.0.2",
60
60
  "@rollup/plugin-replace": "^5.0.2",
61
+ "case-anything": "^2.1.13",
61
62
  "css": "^2.2.3",
62
63
  "fs-extra": "^11.1.1",
63
64
  "glob": "^7.1.2",
@@ -72,5 +73,5 @@
72
73
  "react": "^17 || ^18",
73
74
  "react-dom": "^17 || ^18"
74
75
  },
75
- "gitHead": "d00a526836d0f533fdbf7f6144dd7a89dfad6542"
76
+ "gitHead": "1794095e336814dc8ed16282e1bae4a171ebaa46"
76
77
  }
@@ -3,6 +3,23 @@ import styles from '@patternfly/react-styles/css/components/Icon/icon';
3
3
  import { css } from '@patternfly/react-styles';
4
4
  import { Spinner } from '../Spinner';
5
5
 
6
+ export type IconSize =
7
+ | 'sm'
8
+ | 'md'
9
+ | 'lg'
10
+ | 'xl'
11
+ | '2xl'
12
+ | '3xl'
13
+ | 'headingSm'
14
+ | 'headingMd'
15
+ | 'headingLg'
16
+ | 'headingXl'
17
+ | 'heading_2xl'
18
+ | 'heading_3xl'
19
+ | 'bodySm'
20
+ | 'bodyDefault'
21
+ | 'bodyLg';
22
+
6
23
  export interface IconComponentProps extends Omit<React.HTMLProps<HTMLSpanElement>, 'size'> {
7
24
  /** Icon content */
8
25
  children?: React.ReactNode;
@@ -11,11 +28,11 @@ export interface IconComponentProps extends Omit<React.HTMLProps<HTMLSpanElement
11
28
  /** Additional classes applied to the icon container */
12
29
  className?: string;
13
30
  /** Size of the icon component container and icon. */
14
- size?: 'sm' | 'md' | 'lg' | 'xl';
31
+ size?: IconSize;
15
32
  /** Size of icon. Overrides the icon size set by the size property. */
16
- iconSize?: 'sm' | 'md' | 'lg' | 'xl';
33
+ iconSize?: IconSize;
17
34
  /** Size of progress icon. Overrides the icon size set by the size property. */
18
- progressIconSize?: 'sm' | 'md' | 'lg' | 'xl';
35
+ progressIconSize?: IconSize;
19
36
  /** Status color of the icon */
20
37
  status?: 'custom' | 'info' | 'success' | 'warning' | 'danger';
21
38
  /** Indicates the icon is inline and should inherit the text font size and color. Overriden by size and iconSize properties. */
@@ -1,6 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { render, screen } from '@testing-library/react';
3
- import { Icon } from '../Icon';
3
+ import { kebabCase } from 'case-anything';
4
+ import { Icon, IconSize } from '../Icon';
4
5
  import CheckIcon from '@patternfly/react-icons/dist/esm/icons/check-icon';
5
6
  import styles from '@patternfly/react-styles/css/components/Icon/icon';
6
7
 
@@ -41,16 +42,60 @@ test('sets additional custom class successfully', () => {
41
42
  expect(iconContainer).toHaveClass('test');
42
43
  });
43
44
 
44
- Object.values(['sm', 'md', 'lg', 'xl']).forEach((size) => {
45
+ Object.values([
46
+ 'sm',
47
+ 'md',
48
+ 'lg',
49
+ 'xl',
50
+ '2xl',
51
+ '3xl',
52
+ 'headingSm',
53
+ 'headingMd',
54
+ 'headingLg',
55
+ 'headingXl',
56
+ 'heading_2xl',
57
+ 'heading_3xl',
58
+ 'bodySm',
59
+ 'bodyDefault',
60
+ 'bodyLg'
61
+ ]).forEach((size) => {
45
62
  test(`sets icon size modifier successfully - ${size}`, () => {
46
63
  render(
47
- <Icon iconSize={size as 'sm' | 'md' | 'lg' | 'xl'} title={`content-${size}-icon`}>
64
+ <Icon iconSize={size as IconSize} title={`content-${size}-icon`}>
48
65
  <CheckIcon />
49
66
  </Icon>
50
67
  );
51
68
  const iconContainer = screen.getByTitle(`content-${size}-icon`).querySelector(`.${styles.iconContent}`);
52
69
 
53
- expect(iconContainer).toHaveClass(`pf-m-${size}`);
70
+ const formattedSize = kebabCase(size).replace(/(\d)(-)/, '$1');
71
+
72
+ expect(iconContainer).toHaveClass(`pf-m-${formattedSize}`);
73
+ });
74
+
75
+ test(`sets progress icon size modifier successfully - ${size}`, () => {
76
+ render(
77
+ <Icon isInProgress progressIconSize={size as IconSize} title={`progress-content-${size}-icon`}>
78
+ <CheckIcon />
79
+ </Icon>
80
+ );
81
+ const iconContainer = screen.getByTitle(`progress-content-${size}-icon`).querySelector(`.${styles.iconProgress}`);
82
+
83
+ const formattedSize = kebabCase(size).replace(/(\d)(-)/, '$1');
84
+
85
+ expect(iconContainer).toHaveClass(`pf-m-${formattedSize}`);
86
+ });
87
+
88
+ test(`sets size modifier successfully - ${size}`, () => {
89
+ render(
90
+ <Icon size={size as IconSize} title={`${size}-icon`}>
91
+ <CheckIcon />
92
+ </Icon>
93
+ );
94
+ const iconContainer = screen.getByTitle(`${size}-icon`);
95
+
96
+ const formattedSize = kebabCase(size).replace(/(\d)(-)/, '$1');
97
+
98
+ expect(iconContainer).toHaveClass(`pf-m-${formattedSize}`);
54
99
  });
55
100
  });
56
101
 
@@ -64,19 +109,6 @@ test('check icon without iconSize', () => {
64
109
  expect(Array.from(iconContainer?.classList || []).some((c) => /pf-m-*/.test(c))); // Check no modifier classes have been added
65
110
  });
66
111
 
67
- Object.values(['sm', 'md', 'lg', 'xl']).forEach((size) => {
68
- test(`sets progress icon size modifier successfully - ${size}`, () => {
69
- render(
70
- <Icon isInProgress progressIconSize={size as 'sm' | 'md' | 'lg' | 'xl'} title={`progress-content-${size}-icon`}>
71
- <CheckIcon />
72
- </Icon>
73
- );
74
- const iconContainer = screen.getByTitle(`progress-content-${size}-icon`).querySelector(`.${styles.iconProgress}`);
75
-
76
- expect(iconContainer).toHaveClass(`pf-m-${size}`);
77
- });
78
- });
79
-
80
112
  test('check icon without progress icon size', () => {
81
113
  render(
82
114
  <Icon title="no-progress-icon-size">
@@ -87,19 +119,6 @@ test('check icon without progress icon size', () => {
87
119
  expect(Array.from(iconContainer?.classList || []).some((c) => /pf-m-*/.test(c))); // Check no modifier classes have been added
88
120
  });
89
121
 
90
- Object.values(['sm', 'md', 'lg', 'xl']).forEach((size) => {
91
- test(`sets size modifier successfully - ${size}`, () => {
92
- render(
93
- <Icon size={size as 'sm' | 'md' | 'lg' | 'xl'} title={`${size}-icon`}>
94
- <CheckIcon />
95
- </Icon>
96
- );
97
- const iconContainer = screen.getByTitle(`${size}-icon`);
98
-
99
- expect(iconContainer).toHaveClass(`pf-m-${size}`);
100
- });
101
- });
102
-
103
122
  test('check icon without size', () => {
104
123
  render(
105
124
  <Icon title="no-size">
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ import { Icon } from '@patternfly/react-core';
3
+ import PlusCircleIcon from '@patternfly/react-icons/dist/esm/icons/plus-circle-icon';
4
+
5
+ export const BodyIconSizes: React.FunctionComponent = () => (
6
+ <React.Fragment>
7
+ <Icon size="bodySm">
8
+ <PlusCircleIcon />
9
+ </Icon>
10
+ <Icon size="bodyDefault">
11
+ <PlusCircleIcon />
12
+ </Icon>
13
+ <Icon size="bodyLg">
14
+ <PlusCircleIcon />
15
+ </Icon>
16
+ </React.Fragment>
17
+ );
@@ -0,0 +1,26 @@
1
+ import React from 'react';
2
+ import { Icon } from '@patternfly/react-core';
3
+ import PlusCircleIcon from '@patternfly/react-icons/dist/esm/icons/plus-circle-icon';
4
+
5
+ export const HeadingIconSizes: React.FunctionComponent = () => (
6
+ <React.Fragment>
7
+ <Icon size="headingSm">
8
+ <PlusCircleIcon />
9
+ </Icon>
10
+ <Icon size="headingMd">
11
+ <PlusCircleIcon />
12
+ </Icon>
13
+ <Icon size="headingLg">
14
+ <PlusCircleIcon />
15
+ </Icon>
16
+ <Icon size="headingXl">
17
+ <PlusCircleIcon />
18
+ </Icon>
19
+ <Icon size="heading_2xl">
20
+ <PlusCircleIcon />
21
+ </Icon>
22
+ <Icon size="heading_3xl">
23
+ <PlusCircleIcon />
24
+ </Icon>
25
+ </React.Fragment>
26
+ );
@@ -23,9 +23,25 @@ import BellIcon from '@patternfly/react-icons/dist/esm/icons/bell-icon';
23
23
  ```ts file="IconBasic.tsx"
24
24
  ```
25
25
 
26
- ### Sizes
26
+ ### Standalone icon sizes
27
27
 
28
- ```ts file="IconSizes.tsx"
28
+ These are the standard options for sizing icons.
29
+
30
+ ```ts file="StandaloneIconSizes.tsx"
31
+ ```
32
+
33
+ ### Body sizes
34
+
35
+ These size options are meant to make icons match the size of body text.
36
+
37
+ ```ts file="BodyIconSizes.tsx"
38
+ ```
39
+
40
+ ### Heading sizes
41
+
42
+ These size options are meant to make icons match the size of heading text.
43
+
44
+ ```ts file="HeadingIconSizes.tsx"
29
45
  ```
30
46
 
31
47
  ### Status colors
@@ -4,16 +4,16 @@ import PlusCircleIcon from '@patternfly/react-icons/dist/esm/icons/plus-circle-i
4
4
 
5
5
  export const IconContentSizes: React.FunctionComponent = () => (
6
6
  <React.Fragment>
7
- <Icon size="xl" iconSize="sm">
7
+ <Icon size="3xl" iconSize="lg">
8
8
  <PlusCircleIcon />
9
9
  </Icon>
10
- <Icon size="xl" iconSize="md">
10
+ <Icon size="3xl" iconSize="xl">
11
11
  <PlusCircleIcon />
12
12
  </Icon>
13
- <Icon size="xl" iconSize="lg">
13
+ <Icon size="3xl" iconSize="2xl">
14
14
  <PlusCircleIcon />
15
15
  </Icon>
16
- <Icon size="xl">
16
+ <Icon size="3xl">
17
17
  <PlusCircleIcon />
18
18
  </Icon>
19
19
  </React.Fragment>
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import { Icon } from '@patternfly/react-core';
3
3
  import PlusCircleIcon from '@patternfly/react-icons/dist/esm/icons/plus-circle-icon';
4
4
 
5
- export const IconSizes: React.FunctionComponent = () => (
5
+ export const StandaloneIconSizes: React.FunctionComponent = () => (
6
6
  <React.Fragment>
7
7
  <Icon size="sm">
8
8
  <PlusCircleIcon />
@@ -16,5 +16,11 @@ export const IconSizes: React.FunctionComponent = () => (
16
16
  <Icon size="xl">
17
17
  <PlusCircleIcon />
18
18
  </Icon>
19
+ <Icon size="2xl">
20
+ <PlusCircleIcon />
21
+ </Icon>
22
+ <Icon size="3xl">
23
+ <PlusCircleIcon />
24
+ </Icon>
19
25
  </React.Fragment>
20
26
  );
@@ -55,8 +55,8 @@ export const MultipleFileUploadStatus: React.FunctionComponent<MultipleFileUploa
55
55
 
56
56
  const toggle = (
57
57
  <div className={styles.multipleFileUploadStatusProgress}>
58
- <div className={styles.multipleFileUploadStatusProgressIcon}>{icon}</div>
59
- <div className={styles.multipleFileUploadStatusItemProgressText}>{statusToggleText}</div>
58
+ <div className={`${styles.multipleFileUploadStatusProgress}-icon`}>{icon}</div>
59
+ <div className={`${styles.multipleFileUploadStatusProgress}-text`}>{statusToggleText}</div>
60
60
  </div>
61
61
  );
62
62
 
@@ -4,7 +4,7 @@ import { css } from '@patternfly/react-styles';
4
4
  import { Progress } from '../Progress';
5
5
  import { Button } from '../Button';
6
6
  import FileIcon from '@patternfly/react-icons/dist/esm/icons/file-icon';
7
- import TimesCircleIcon from '@patternfly/react-icons/dist/esm/icons/times-circle-icon';
7
+ import TimesIcon from '@patternfly/react-icons/dist/esm/icons/times-icon';
8
8
 
9
9
  /** Automatically reads an uploaded file to render a visual representation of it, including
10
10
  * its name, size, and read status. This sub-component also allows custom reading of files
@@ -165,10 +165,9 @@ export const MultipleFileUploadStatusItem: React.FunctionComponent<MultipleFileU
165
165
  helperText={progressHelperText}
166
166
  />
167
167
  </div>
168
- {/* TODO: Update with issue #9997. Removed class "styles.multipleFileUploadStatusItemClose" that no longer exists */}
169
- <div>
168
+ <div className={`${styles.multipleFileUploadStatusItem}-close`}>
170
169
  <Button variant="plain" aria-label={buttonAriaLabel} onClick={onClearClick}>
171
- <TimesCircleIcon />
170
+ <TimesIcon />
172
171
  </Button>
173
172
  </div>
174
173
  </li>
@@ -42,7 +42,7 @@ exports[`MultipleFileUploadStatus renders custom class names 1`] = `
42
42
  class="pf-v5-c-multiple-file-upload__status-progress-icon"
43
43
  />
44
44
  <div
45
- class="pf-v5-c-multiple-file-upload__status-item-progress-text"
45
+ class="pf-v5-c-multiple-file-upload__status-progress-text"
46
46
  />
47
47
  </div>
48
48
  </span>
@@ -121,7 +121,7 @@ exports[`MultipleFileUploadStatus renders status toggle icon 1`] = `
121
121
  </svg>
122
122
  </div>
123
123
  <div
124
- class="pf-v5-c-multiple-file-upload__status-item-progress-text"
124
+ class="pf-v5-c-multiple-file-upload__status-progress-text"
125
125
  />
126
126
  </div>
127
127
  </span>
@@ -186,7 +186,7 @@ exports[`MultipleFileUploadStatus renders status toggle text 1`] = `
186
186
  class="pf-v5-c-multiple-file-upload__status-progress-icon"
187
187
  />
188
188
  <div
189
- class="pf-v5-c-multiple-file-upload__status-item-progress-text"
189
+ class="pf-v5-c-multiple-file-upload__status-progress-text"
190
190
  >
191
191
  test
192
192
  </div>
@@ -253,7 +253,7 @@ exports[`MultipleFileUploadStatus renders with expected class names 1`] = `
253
253
  class="pf-v5-c-multiple-file-upload__status-progress-icon"
254
254
  />
255
255
  <div
256
- class="pf-v5-c-multiple-file-upload__status-item-progress-text"
256
+ class="pf-v5-c-multiple-file-upload__status-progress-text"
257
257
  />
258
258
  </div>
259
259
  </span>
@@ -85,7 +85,9 @@ exports[`MultipleFileUploadStatusItem renders custom aria labels 1`] = `
85
85
  </div>
86
86
  </div>
87
87
  </div>
88
- <div>
88
+ <div
89
+ class="pf-v5-c-multiple-file-upload__status-item-close"
90
+ >
89
91
  <button
90
92
  aria-disabled="false"
91
93
  aria-label="buttonAriaLabel"
@@ -101,11 +103,11 @@ exports[`MultipleFileUploadStatusItem renders custom aria labels 1`] = `
101
103
  fill="currentColor"
102
104
  height="1em"
103
105
  role="img"
104
- viewBox="0 0 512 512"
106
+ viewBox="0 0 352 512"
105
107
  width="1em"
106
108
  >
107
109
  <path
108
- d="M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm121.6 313.1c4.7 4.7 4.7 12.3 0 17L338 377.6c-4.7 4.7-12.3 4.7-17 0L256 312l-65.1 65.6c-4.7 4.7-12.3 4.7-17 0L134.4 338c-4.7-4.7-4.7-12.3 0-17l65.6-65-65.6-65.1c-4.7-4.7-4.7-12.3 0-17l39.6-39.6c4.7-4.7 12.3-4.7 17 0l65 65.7 65.1-65.6c4.7-4.7 12.3-4.7 17 0l39.6 39.6c4.7 4.7 4.7 12.3 0 17L312 256l65.6 65.1z"
110
+ d="M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z"
109
111
  />
110
112
  </svg>
111
113
  </button>
@@ -196,7 +198,9 @@ exports[`MultipleFileUploadStatusItem renders custom class names 1`] = `
196
198
  </div>
197
199
  </div>
198
200
  </div>
199
- <div>
201
+ <div
202
+ class="pf-v5-c-multiple-file-upload__status-item-close"
203
+ >
200
204
  <button
201
205
  aria-disabled="false"
202
206
  aria-label="Remove from list"
@@ -212,11 +216,11 @@ exports[`MultipleFileUploadStatusItem renders custom class names 1`] = `
212
216
  fill="currentColor"
213
217
  height="1em"
214
218
  role="img"
215
- viewBox="0 0 512 512"
219
+ viewBox="0 0 352 512"
216
220
  width="1em"
217
221
  >
218
222
  <path
219
- d="M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm121.6 313.1c4.7 4.7 4.7 12.3 0 17L338 377.6c-4.7 4.7-12.3 4.7-17 0L256 312l-65.1 65.6c-4.7 4.7-12.3 4.7-17 0L134.4 338c-4.7-4.7-4.7-12.3 0-17l65.6-65-65.6-65.1c-4.7-4.7-4.7-12.3 0-17l39.6-39.6c4.7-4.7 12.3-4.7 17 0l65 65.7 65.1-65.6c4.7-4.7 12.3-4.7 17 0l39.6 39.6c4.7 4.7 4.7 12.3 0 17L312 256l65.6 65.1z"
223
+ d="M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z"
220
224
  />
221
225
  </svg>
222
226
  </button>
@@ -309,7 +313,9 @@ exports[`MultipleFileUploadStatusItem renders custom file name/size/icon/progres
309
313
  </div>
310
314
  </div>
311
315
  </div>
312
- <div>
316
+ <div
317
+ class="pf-v5-c-multiple-file-upload__status-item-close"
318
+ >
313
319
  <button
314
320
  aria-disabled="false"
315
321
  aria-label="Remove from list"
@@ -325,11 +331,11 @@ exports[`MultipleFileUploadStatusItem renders custom file name/size/icon/progres
325
331
  fill="currentColor"
326
332
  height="1em"
327
333
  role="img"
328
- viewBox="0 0 512 512"
334
+ viewBox="0 0 352 512"
329
335
  width="1em"
330
336
  >
331
337
  <path
332
- d="M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm121.6 313.1c4.7 4.7 4.7 12.3 0 17L338 377.6c-4.7 4.7-12.3 4.7-17 0L256 312l-65.1 65.6c-4.7 4.7-12.3 4.7-17 0L134.4 338c-4.7-4.7-4.7-12.3 0-17l65.6-65-65.6-65.1c-4.7-4.7-4.7-12.3 0-17l39.6-39.6c4.7-4.7 12.3-4.7 17 0l65 65.7 65.1-65.6c4.7-4.7 12.3-4.7 17 0l39.6 39.6c4.7 4.7 4.7 12.3 0 17L312 256l65.6 65.1z"
338
+ d="M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z"
333
339
  />
334
340
  </svg>
335
341
  </button>
@@ -422,7 +428,9 @@ exports[`MultipleFileUploadStatusItem renders custom function progressAriaLiveMe
422
428
  </div>
423
429
  </div>
424
430
  </div>
425
- <div>
431
+ <div
432
+ class="pf-v5-c-multiple-file-upload__status-item-close"
433
+ >
426
434
  <button
427
435
  aria-disabled="false"
428
436
  aria-label="Remove from list"
@@ -438,11 +446,11 @@ exports[`MultipleFileUploadStatusItem renders custom function progressAriaLiveMe
438
446
  fill="currentColor"
439
447
  height="1em"
440
448
  role="img"
441
- viewBox="0 0 512 512"
449
+ viewBox="0 0 352 512"
442
450
  width="1em"
443
451
  >
444
452
  <path
445
- d="M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm121.6 313.1c4.7 4.7 4.7 12.3 0 17L338 377.6c-4.7 4.7-12.3 4.7-17 0L256 312l-65.1 65.6c-4.7 4.7-12.3 4.7-17 0L134.4 338c-4.7-4.7-4.7-12.3 0-17l65.6-65-65.6-65.1c-4.7-4.7-4.7-12.3 0-17l39.6-39.6c4.7-4.7 12.3-4.7 17 0l65 65.7 65.1-65.6c4.7-4.7 12.3-4.7 17 0l39.6 39.6c4.7 4.7 4.7 12.3 0 17L312 256l65.6 65.1z"
453
+ d="M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z"
446
454
  />
447
455
  </svg>
448
456
  </button>
@@ -552,7 +560,9 @@ exports[`MultipleFileUploadStatusItem renders custom progress value/variant when
552
560
  </div>
553
561
  </div>
554
562
  </div>
555
- <div>
563
+ <div
564
+ class="pf-v5-c-multiple-file-upload__status-item-close"
565
+ >
556
566
  <button
557
567
  aria-disabled="false"
558
568
  aria-label="Remove from list"
@@ -568,11 +578,11 @@ exports[`MultipleFileUploadStatusItem renders custom progress value/variant when
568
578
  fill="currentColor"
569
579
  height="1em"
570
580
  role="img"
571
- viewBox="0 0 512 512"
581
+ viewBox="0 0 352 512"
572
582
  width="1em"
573
583
  >
574
584
  <path
575
- d="M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm121.6 313.1c4.7 4.7 4.7 12.3 0 17L338 377.6c-4.7 4.7-12.3 4.7-17 0L256 312l-65.1 65.6c-4.7 4.7-12.3 4.7-17 0L134.4 338c-4.7-4.7-4.7-12.3 0-17l65.6-65-65.6-65.1c-4.7-4.7-4.7-12.3 0-17l39.6-39.6c4.7-4.7 12.3-4.7 17 0l65 65.7 65.1-65.6c4.7-4.7 12.3-4.7 17 0l39.6 39.6c4.7 4.7 4.7 12.3 0 17L312 256l65.6 65.1z"
585
+ d="M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z"
576
586
  />
577
587
  </svg>
578
588
  </button>
@@ -665,7 +675,9 @@ exports[`MultipleFileUploadStatusItem renders expected values from a passed file
665
675
  </div>
666
676
  </div>
667
677
  </div>
668
- <div>
678
+ <div
679
+ class="pf-v5-c-multiple-file-upload__status-item-close"
680
+ >
669
681
  <button
670
682
  aria-disabled="false"
671
683
  aria-label="Remove from list"
@@ -681,11 +693,11 @@ exports[`MultipleFileUploadStatusItem renders expected values from a passed file
681
693
  fill="currentColor"
682
694
  height="1em"
683
695
  role="img"
684
- viewBox="0 0 512 512"
696
+ viewBox="0 0 352 512"
685
697
  width="1em"
686
698
  >
687
699
  <path
688
- d="M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm121.6 313.1c4.7 4.7 4.7 12.3 0 17L338 377.6c-4.7 4.7-12.3 4.7-17 0L256 312l-65.1 65.6c-4.7 4.7-12.3 4.7-17 0L134.4 338c-4.7-4.7-4.7-12.3 0-17l65.6-65-65.6-65.1c-4.7-4.7-4.7-12.3 0-17l39.6-39.6c4.7-4.7 12.3-4.7 17 0l65 65.7 65.1-65.6c4.7-4.7 12.3-4.7 17 0l39.6 39.6c4.7 4.7 4.7 12.3 0 17L312 256l65.6 65.1z"
700
+ d="M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z"
689
701
  />
690
702
  </svg>
691
703
  </button>
@@ -776,7 +788,9 @@ exports[`MultipleFileUploadStatusItem renders with expected class names 1`] = `
776
788
  </div>
777
789
  </div>
778
790
  </div>
779
- <div>
791
+ <div
792
+ class="pf-v5-c-multiple-file-upload__status-item-close"
793
+ >
780
794
  <button
781
795
  aria-disabled="false"
782
796
  aria-label="Remove from list"
@@ -792,11 +806,11 @@ exports[`MultipleFileUploadStatusItem renders with expected class names 1`] = `
792
806
  fill="currentColor"
793
807
  height="1em"
794
808
  role="img"
795
- viewBox="0 0 512 512"
809
+ viewBox="0 0 352 512"
796
810
  width="1em"
797
811
  >
798
812
  <path
799
- d="M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm121.6 313.1c4.7 4.7 4.7 12.3 0 17L338 377.6c-4.7 4.7-12.3 4.7-17 0L256 312l-65.1 65.6c-4.7 4.7-12.3 4.7-17 0L134.4 338c-4.7-4.7-4.7-12.3 0-17l65.6-65-65.6-65.1c-4.7-4.7-4.7-12.3 0-17l39.6-39.6c4.7-4.7 12.3-4.7 17 0l65 65.7 65.1-65.6c4.7-4.7 12.3-4.7 17 0l39.6 39.6c4.7 4.7 4.7 12.3 0 17L312 256l65.6 65.1z"
813
+ d="M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z"
800
814
  />
801
815
  </svg>
802
816
  </button>
@@ -889,7 +903,9 @@ exports[`MultipleFileUploadStatusItem rendersdefault progressAriaLiveMessage whe
889
903
  </div>
890
904
  </div>
891
905
  </div>
892
- <div>
906
+ <div
907
+ class="pf-v5-c-multiple-file-upload__status-item-close"
908
+ >
893
909
  <button
894
910
  aria-disabled="false"
895
911
  aria-label="Remove from list"
@@ -905,11 +921,11 @@ exports[`MultipleFileUploadStatusItem rendersdefault progressAriaLiveMessage whe
905
921
  fill="currentColor"
906
922
  height="1em"
907
923
  role="img"
908
- viewBox="0 0 512 512"
924
+ viewBox="0 0 352 512"
909
925
  width="1em"
910
926
  >
911
927
  <path
912
- d="M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm121.6 313.1c4.7 4.7 4.7 12.3 0 17L338 377.6c-4.7 4.7-12.3 4.7-17 0L256 312l-65.1 65.6c-4.7 4.7-12.3 4.7-17 0L134.4 338c-4.7-4.7-4.7-12.3 0-17l65.6-65-65.6-65.1c-4.7-4.7-4.7-12.3 0-17l39.6-39.6c4.7-4.7 12.3-4.7 17 0l65 65.7 65.1-65.6c4.7-4.7 12.3-4.7 17 0l39.6 39.6c4.7 4.7 4.7 12.3 0 17L312 256l65.6 65.1z"
928
+ d="M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z"
913
929
  />
914
930
  </svg>
915
931
  </button>