Skip to content

Commit a1404e3

Browse files
fix(UserIcon): Replace UserIcon with RhUiProfileFillIcon (#12452)
* fix(UserIcon): Replace UserIcon with RhUiProfileFillIcon Co-authored-by: Cursor <cursoragent@cursor.com> * Address feedback --------- Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 71b4735 commit a1404e3

4 files changed

Lines changed: 8 additions & 21 deletions

File tree

packages/react-core/src/components/EmptyState/__tests__/Generated/EmptyStateIcon.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
* This test was generated
33
*/
44
import { render } from '@testing-library/react';
5-
import UserIcon from '@patternfly/react-icons/dist/esm/icons/user-icon';
5+
import RhUiProfileFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-profile-fill-icon';
66
import { EmptyStateIcon } from '../../EmptyStateIcon';
77
// any missing imports can usually be resolved by adding them here
88
import { Spinner } from '../../../Spinner/Spinner';
99

1010
it('EmptyStateIcon should match snapshot (auto-generated)', () => {
11-
const { asFragment } = render(<EmptyStateIcon className={"''"} icon={UserIcon} />);
11+
const { asFragment } = render(<EmptyStateIcon className={"''"} icon={RhUiProfileFillIcon} />);
1212
expect(asFragment()).toMatchSnapshot();
1313
});
1414

packages/react-core/src/components/EmptyState/__tests__/Generated/__snapshots__/EmptyStateIcon.test.tsx.snap

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -11,24 +11,12 @@ exports[`EmptyStateIcon should match snapshot (auto-generated) 1`] = `
1111
fill="currentColor"
1212
height="1em"
1313
role="img"
14+
viewBox="0 0 32 32"
1415
width="1em"
1516
>
16-
<svg
17-
class="pf-v6-icon-default"
18-
viewBox="0 0 448 512"
19-
>
20-
<path
21-
d="M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4z"
22-
/>
23-
</svg>
24-
<svg
25-
class="pf-v6-icon-rh-ui"
26-
viewBox="0 0 32 32"
27-
>
28-
<path
29-
d="M20.354 15.702C22.545 14.273 24 11.805 24 9c0-4.411-3.589-8-8-8S8 4.589 8 9a7.995 7.995 0 0 0 3.646 6.702C6.053 17.538 2 22.801 2 29a1 1 0 0 0 1 1h26a1 1 0 0 0 1-1c0-6.199-4.053-11.462-9.646-13.298ZM10 9c0-3.309 2.691-6 6-6s6 2.691 6 6-2.691 6-6 6-6-2.691-6-6ZM4.041 28C4.551 21.85 9.72 17 16 17s11.449 4.85 11.959 11H4.041Z"
30-
/>
31-
</svg>
17+
<path
18+
d="M29.75 29a.75.75 0 0 1-.75.75H3a.75.75 0 0 1-.75-.75c0-6.283 4.241-11.583 10.007-13.219A7.755 7.755 0 0 1 8.25 9c0-4.273 3.477-7.75 7.75-7.75S23.75 4.727 23.75 9a7.751 7.751 0 0 1-4.007 6.781C25.509 17.417 29.75 22.717 29.75 29Z"
19+
/>
3220
</svg>
3321
</div>
3422
</DocumentFragment>

packages/react-core/src/components/Nav/examples/Nav.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ ouia: true
99
import { useState } from 'react';
1010
import './nav.css';
1111
import RhMicronsCaretRightIcon from '@patternfly/react-icons/dist/esm/icons/rh-microns-caret-right-icon';
12-
import UserIcon from '@patternfly/react-icons/dist/esm/icons/user-icon';
1312
import CubeIcon from '@patternfly/react-icons/dist/esm/icons/cube-icon';
1413
import FolderIcon from '@patternfly/react-icons/dist/esm/icons/folder-icon';
1514
import FolderOpenIcon from '@patternfly/react-icons/dist/esm/icons/folder-open-icon';

packages/react-integration/demo-app-ts/src/components/demos/AlertDemo/AlertDemo.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Component } from 'react';
22
import { Alert, AlertActionCloseButton } from '@patternfly/react-core';
3-
import UserIcon from '@patternfly/react-icons/dist/esm/icons/user-icon';
3+
import RhUiProfileFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-profile-fill-icon';
44

55
interface AlertDemoState {
66
alertOneVisible: boolean;
@@ -59,7 +59,7 @@ export class AlertDemo extends Component<{}, AlertDemoState> {
5959
truncateTitle={3}
6060
tooltipPosition="bottom"
6161
/>
62-
<Alert id="custom-icon-alert" title="Custom icon alert title" customIcon={<UserIcon />}>
62+
<Alert id="custom-icon-alert" title="Custom icon alert title" customIcon={<RhUiProfileFillIcon />}>
6363
Custom icon alert description
6464
</Alert>
6565
<Alert id="expandable-alert" title="Expandable alert title" isExpandable>

0 commit comments

Comments
 (0)