Skip to content

feat(misc): update status icons to rh icons#12291

Open
kmcfaul wants to merge 2 commits intopatternfly:mainfrom
kmcfaul:unified-status-icons
Open

feat(misc): update status icons to rh icons#12291
kmcfaul wants to merge 2 commits intopatternfly:mainfrom
kmcfaul:unified-status-icons

Conversation

@kmcfaul
Copy link
Contributor

@kmcfaul kmcfaul commented Mar 25, 2026

What: Closes #12260

Updated the following icons:
CheckCircleIcon to RhUiCheckCircleFillIcon
ExclamationTriangleIcon to RhUiWarningFillIcon
ExclamationCircleIcon to RhUiErrorFillIcon
InfoCircleIcon to RhUiInformationFillIcon
BellIcon to RhUiNotificationFillIcon

Also went and updated AttentionBellIcon to RhUiAttentionBellFillIcon in NotificationBadge since that was similar to the new bell icon.

Finally, also updated the pfToRhIcons mapping in react-icons to use the fill versions for consistency.

@kmcfaul kmcfaul changed the title Unified status icons feat(misc): update status icons to rh icons Mar 25, 2026
@coderabbitai
Copy link

coderabbitai bot commented Mar 25, 2026

Walkthrough

This PR systematically replaces PatternFly status icons with RH UI fill-variant icons across the codebase. Icon mappings, imports, and JSX renderings for success/error/warning/info/custom statuses are updated from outline-style icons (e.g., CheckCircleIcon, ExclamationCircleIcon) to filled variants (e.g., RhUiCheckCircleFillIcon, RhUiErrorFillIcon). The icon mapping utility is updated to reflect the new icon names.

Changes

Cohort / File(s) Summary
Core Component Icon Mappings
packages/react-core/src/components/Alert/AlertIcon.tsx, packages/react-core/src/components/FormControl/FormControlIcon.tsx, packages/react-core/src/components/HelperText/HelperTextItem.tsx, packages/react-core/src/components/Label/Label.tsx, packages/react-core/src/components/MenuToggle/MenuToggle.tsx, packages/react-core/src/components/Modal/ModalBoxTitle.tsx, packages/react-core/src/components/NotificationBadge/NotificationBadge.tsx, packages/react-core/src/components/NotificationDrawer/NotificationDrawerListItemHeader.tsx, packages/react-core/src/components/Popover/examples/PopoverAlert.tsx, packages/react-core/src/components/Progress/ProgressContainer.tsx, packages/react-core/src/components/ProgressStepper/ProgressStep.tsx, packages/react-core/src/components/Wizard/WizardNavItem.tsx, packages/react-core/src/components/Wizard/WizardToggle.tsx, packages/deprecated/.../Modal/ModalBoxTitle.tsx, packages/react-core/src/helpers/constants.ts
Updated statusIcons/variantIcons mappings to reference new RH UI fill icon components (RhUiCheckCircleFillIcon, RhUiErrorFillIcon, RhUiWarningFillIcon, RhUiInformationFillIcon, RhUiNotificationFillIcon) replacing outline variants.
Example & Demo Components
packages/react-core/src/components/Banner/examples/*, packages/react-core/src/components/Button/examples/*, packages/react-core/src/components/ExpandableSection/examples/*, packages/react-core/src/components/Form/examples/*, packages/react-core/src/components/Icon/examples/*, packages/react-core/src/components/Label/examples/*, packages/react-core/src/components/LoginPage/examples/*, packages/react-core/src/components/Menu/examples/*, packages/react-core/src/components/Select/examples/*, packages/react-core/src/demos/.../*
Updated icon imports and JSX renderings in example/demo components to use new RH UI fill icon variants across ~50 files.
Markdown Documentation
packages/react-core/src/components/*/examples/*.md, packages/react-core/src/demos/*.md, packages/react-table/src/demos/Table.md
Updated example markdown files with new RH UI fill icon imports.
Test Files
packages/react-core/src/components/Alert/__tests__/AlertIcon.test.tsx, packages/react-core/src/components/ExpandableSection/__tests__/ExpandableSection.test.tsx, packages/react-core/src/components/NotificationDrawer/__tests__/NotificationDrawerListItemHeader.test.tsx, packages/react-core/src/components/ProgressStepper/__tests__/ProgressStep.test.tsx
Updated Jest mock module paths and snapshot icons to reflect new RH UI fill icon modules (e.g., rh-ui-check-circle-fill-icon, rh-ui-error-fill-icon).
Icon Mapping Utility
packages/react-icons/scripts/icons/pfToRhIcons.mjs
Updated semantic icon name mappings in pfToRhIcons object: AttentionBellIcon, BellIcon, CheckCircleIcon, ExclamationCircleIcon, ExclamationTriangleIcon, and InfoCircleIcon now reference -fill variants (e.g., 'rh-ui-notification-fill', 'rh-ui-check-circle-fill').
Integration Demo
packages/react-integration/demo-app-ts/src/components/demos/*
Updated icon imports and usages in TypeScript demo components (FormDemo, LabelDemo, LoginPageDemo, MenuDemo).
Code Connect & Figma
packages/code-connect/components/PopOver/Popover.figma.tsx
Replaced Figma component icon mappings from outline icons to RH UI fill icons for success/info/warning/danger variants.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

Possibly related PRs

Suggested reviewers

  • nicolethoen
  • thatblindgeye
  • gitdallas
  • mcoker
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The PR title 'feat(misc): update status icons to rh icons' clearly and concisely summarizes the main change: replacing PatternFly status icons with RH UI branded icons across the codebase.
Linked Issues check ✅ Passed The PR fully addresses issue #12260 by implementing a comprehensive update to replace all status icons with rh-ui branded variants across components, examples, demos, and tests.
Out of Scope Changes check ✅ Passed All changes are directly related to the linked issue objective of updating status icons to rh-ui branded icons. No unrelated or out-of-scope modifications were introduced.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@patternfly-build
Copy link
Collaborator

patternfly-build commented Mar 25, 2026

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
packages/react-core/src/components/Button/examples/ButtonCircle.tsx (1)

16-16: ⚠️ Potential issue | 🔴 Critical

Missing useState import will cause a runtime error.

The component uses useState on line 16, but there is no import statement for it. While React is available globally in this repo, useState must still be explicitly imported as a named export from 'react'.

🐛 Proposed fix
+import { useState } from 'react';
 import { Button, Flex } from '@patternfly/react-core';
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@packages/react-core/src/components/Button/examples/ButtonCircle.tsx` at line
16, The file ButtonCircle.tsx uses the React hook useState (const [isUploading,
setIsUploading] = useState<boolean>(false)) but does not import it; add useState
as a named import from 'react' (either by updating an existing import React, {
useState } from 'react' or adding a separate import { useState } from 'react')
so the useState hook is available at runtime.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@packages/react-core/src/demos/examples/Card/CardStatus.tsx`:
- Line 218: The blue status Label in CardStatus.tsx is using RhUiErrorFillIcon
which is semantically incorrect; update the JSX where Label color="blue" and
icon={<RhUiErrorFillIcon />} to use the info icon (e.g., replace
RhUiErrorFillIcon with RhUiInfoFillIcon or the designated info icon export) so
the icon matches the blue/info status convention, and ensure you import the
chosen RhUiInfoFillIcon at the top of the file if not already imported.

In `@packages/react-core/src/demos/Tabs.md`:
- Line 8: The import for the icon uses the CommonJS path; update the
RhUiInformationFillIcon import to use the ESM package to match other imports in
this file—replace the current
'@patternfly/react-icons/dist/js/icons/rh-ui-information-fill-icon' import with
the ESM path
'@patternfly/react-icons/dist/esm/icons/rh-ui-information-fill-icon' so module
targets remain consistent (locate the import of RhUiInformationFillIcon in
Tabs.md and change its module path).

---

Outside diff comments:
In `@packages/react-core/src/components/Button/examples/ButtonCircle.tsx`:
- Line 16: The file ButtonCircle.tsx uses the React hook useState (const
[isUploading, setIsUploading] = useState<boolean>(false)) but does not import
it; add useState as a named import from 'react' (either by updating an existing
import React, { useState } from 'react' or adding a separate import { useState }
from 'react') so the useState hook is available at runtime.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: bb83a1b4-4af4-4076-ae18-61c272757df8

📥 Commits

Reviewing files that changed from the base of the PR and between 641c888 and 49e1121.

⛔ Files ignored due to path filters (11)
  • packages/react-core/src/components/Alert/__tests__/Generated/__snapshots__/AlertIcon.test.tsx.snap is excluded by !**/*.snap, !**/generated/**
  • packages/react-core/src/components/FormSelect/__tests__/__snapshots__/FormSelect.test.tsx.snap is excluded by !**/*.snap
  • packages/react-core/src/components/Modal/__tests__/__snapshots__/ModalBoxTitle.test.tsx.snap is excluded by !**/*.snap
  • packages/react-core/src/components/MultipleFileUpload/__tests__/__snapshots__/MultipleFileUploadStatusItem.test.tsx.snap is excluded by !**/*.snap
  • packages/react-core/src/components/NotificationBadge/__tests__/__snapshots__/NotificationBadge.test.tsx.snap is excluded by !**/*.snap
  • packages/react-core/src/components/NotificationDrawer/__tests__/__snapshots__/NotificationDrawerListItemHeader.test.tsx.snap is excluded by !**/*.snap
  • packages/react-core/src/components/NumberInput/__tests__/__snapshots__/NumberInput.test.tsx.snap is excluded by !**/*.snap
  • packages/react-core/src/components/Progress/__tests__/Generated/__snapshots__/ProgressContainer.test.tsx.snap is excluded by !**/*.snap, !**/generated/**
  • packages/react-core/src/components/Progress/__tests__/__snapshots__/Progress.test.tsx.snap is excluded by !**/*.snap
  • packages/react-core/src/components/TextInput/__tests__/__snapshots__/TextInput.test.tsx.snap is excluded by !**/*.snap
  • packages/react-core/src/deprecated/components/Modal/__tests__/__snapshots__/ModalBoxTitle.test.tsx.snap is excluded by !**/*.snap
📒 Files selected for processing (102)
  • packages/code-connect/components/PopOver/Popover.figma.tsx
  • packages/react-core/src/components/Alert/AlertIcon.tsx
  • packages/react-core/src/components/Alert/__tests__/AlertIcon.test.tsx
  • packages/react-core/src/components/Banner/examples/Banner.md
  • packages/react-core/src/components/Banner/examples/BannerStatus.tsx
  • packages/react-core/src/components/Button/examples/Button.md
  • packages/react-core/src/components/Button/examples/ButtonCircle.tsx
  • packages/react-core/src/components/Button/examples/ButtonStateful.tsx
  • packages/react-core/src/components/Button/examples/ButtonVariations.tsx
  • packages/react-core/src/components/EmptyState/examples/EmptyState.md
  • packages/react-core/src/components/ExpandableSection/__tests__/ExpandableSection.test.tsx
  • packages/react-core/src/components/ExpandableSection/examples/ExpandableSection.md
  • packages/react-core/src/components/ExpandableSection/examples/ExpandableSectionCustomToggle.tsx
  • packages/react-core/src/components/ExpandableSection/examples/ExpandableSectionWithHeading.tsx
  • packages/react-core/src/components/FileUpload/examples/FileUpload.md
  • packages/react-core/src/components/Form/examples/Form.md
  • packages/react-core/src/components/Form/examples/FormInvalid.tsx
  • packages/react-core/src/components/Form/examples/FormInvalidWithFormAlert.tsx
  • packages/react-core/src/components/Form/examples/FormState.tsx
  • packages/react-core/src/components/Form/examples/FormValidated.tsx
  • packages/react-core/src/components/FormControl/FormControlIcon.tsx
  • packages/react-core/src/components/HelperText/HelperTextItem.tsx
  • packages/react-core/src/components/Icon/examples/Icon.md
  • packages/react-core/src/components/Icon/examples/IconCustomProgress.tsx
  • packages/react-core/src/components/Icon/examples/IconProgress.tsx
  • packages/react-core/src/components/Icon/examples/IconStatus.tsx
  • packages/react-core/src/components/Label/Label.tsx
  • packages/react-core/src/components/Label/examples/Label.md
  • packages/react-core/src/components/Label/examples/LabelCompact.tsx
  • packages/react-core/src/components/Label/examples/LabelCustomRender.tsx
  • packages/react-core/src/components/Label/examples/LabelGroupBasic.tsx
  • packages/react-core/src/components/Label/examples/LabelGroupCategory.tsx
  • packages/react-core/src/components/Label/examples/LabelGroupCategoryRemovable.tsx
  • packages/react-core/src/components/Label/examples/LabelGroupEditableAddModal.tsx
  • packages/react-core/src/components/Label/examples/LabelGroupOverflow.tsx
  • packages/react-core/src/components/Label/examples/LabelGroupVerticalCategoryOverflowRemovable.tsx
  • packages/react-core/src/components/LoginPage/examples/LoginPage.md
  • packages/react-core/src/components/LoginPage/examples/LoginPageBasic.tsx
  • packages/react-core/src/components/LoginPage/examples/LoginPageLanguageSelect.tsx
  • packages/react-core/src/components/LoginPage/examples/LoginPageShowHidePassword.tsx
  • packages/react-core/src/components/Menu/examples/Menu.md
  • packages/react-core/src/components/Menu/examples/MenuWithActions.tsx
  • packages/react-core/src/components/Menu/examples/MenuWithFavorites.tsx
  • packages/react-core/src/components/MenuToggle/MenuToggle.tsx
  • packages/react-core/src/components/Modal/ModalBoxTitle.tsx
  • packages/react-core/src/components/MultipleFileUpload/MultipleFileUploadStatus.tsx
  • packages/react-core/src/components/NotificationBadge/NotificationBadge.tsx
  • packages/react-core/src/components/NotificationBadge/examples/NotificationBadge.md
  • packages/react-core/src/components/NotificationDrawer/NotificationDrawerListItemHeader.tsx
  • packages/react-core/src/components/NotificationDrawer/__tests__/NotificationDrawerListItemHeader.test.tsx
  • packages/react-core/src/components/Popover/examples/Popover.md
  • packages/react-core/src/components/Popover/examples/PopoverAlert.tsx
  • packages/react-core/src/components/Progress/ProgressContainer.tsx
  • packages/react-core/src/components/ProgressStepper/ProgressStep.tsx
  • packages/react-core/src/components/ProgressStepper/__tests__/ProgressStep.test.tsx
  • packages/react-core/src/components/Select/examples/Select.md
  • packages/react-core/src/components/Select/examples/SelectOptionVariations.tsx
  • packages/react-core/src/components/Wizard/WizardNavItem.tsx
  • packages/react-core/src/components/Wizard/WizardToggle.tsx
  • packages/react-core/src/demos/Button/Button.md
  • packages/react-core/src/demos/Button/examples/ButtonProgress.tsx
  • packages/react-core/src/demos/CardDemos.md
  • packages/react-core/src/demos/CustomMenus/CustomMenus.md
  • packages/react-core/src/demos/CustomMenus/examples/ActionsMenuDemo.tsx
  • packages/react-core/src/demos/DataList/examples/DataListBasic.tsx
  • packages/react-core/src/demos/DataListDemo.md
  • packages/react-core/src/demos/DescriptionList/DescriptionList.md
  • packages/react-core/src/demos/DescriptionList/examples/DescriptionListBasic.tsx
  • packages/react-core/src/demos/HelperText.md
  • packages/react-core/src/demos/LabelGroupDemos.md
  • packages/react-core/src/demos/Masthead.md
  • packages/react-core/src/demos/Nav.md
  • packages/react-core/src/demos/NotificationDrawer/NotificationDrawer.md
  • packages/react-core/src/demos/Page.md
  • packages/react-core/src/demos/PasswordStrength.md
  • packages/react-core/src/demos/PrimaryDetail.md
  • packages/react-core/src/demos/Tabs.md
  • packages/react-core/src/demos/examples/Card/CardAggregateStatus.tsx
  • packages/react-core/src/demos/examples/Card/CardEventsView.tsx
  • packages/react-core/src/demos/examples/Card/CardHorizontalGrid.tsx
  • packages/react-core/src/demos/examples/Card/CardStatus.tsx
  • packages/react-core/src/demos/examples/Card/CardStatusTabbed.tsx
  • packages/react-core/src/demos/examples/Card/CardUtilizationDemo3.tsx
  • packages/react-core/src/demos/examples/PasswordStrength/PasswordStrengthDemo.tsx
  • packages/react-core/src/demos/examples/PrimaryDetail/PrimaryDetailContentPadding.tsx
  • packages/react-core/src/demos/examples/PrimaryDetail/PrimaryDetailFullPage.tsx
  • packages/react-core/src/demos/examples/PrimaryDetail/PrimaryDetailInlineModifier.tsx
  • packages/react-core/src/demos/examples/Tabs/TabsOpen.tsx
  • packages/react-core/src/demos/examples/Tabs/TabsOpenWithSecondaryTabs.tsx
  • packages/react-core/src/deprecated/components/Modal/ModalBoxTitle.tsx
  • packages/react-core/src/deprecated/components/Tile/examples/Tile.md
  • packages/react-core/src/deprecated/components/Tile/examples/TileStacked.tsx
  • packages/react-core/src/deprecated/components/Tile/examples/TileStackedWithLargeIcons.tsx
  • packages/react-core/src/deprecated/components/Tile/examples/TileWithExtraContent.tsx
  • packages/react-core/src/helpers/constants.ts
  • packages/react-icons/scripts/icons/pfToRhIcons.mjs
  • packages/react-integration/demo-app-ts/src/components/demos/FormDemo/FormDemo.tsx
  • packages/react-integration/demo-app-ts/src/components/demos/LabelDemo/LabelDemo.tsx
  • packages/react-integration/demo-app-ts/src/components/demos/LoginPageDemo/LoginPageDemo.tsx
  • packages/react-integration/demo-app-ts/src/components/demos/MenuDemo/MenuDemo.tsx
  • packages/react-table/src/demos/Table.md
  • packages/react-table/src/demos/examples/TableEmptyStateError.tsx
💤 Files with no reviewable changes (2)
  • packages/react-core/src/components/EmptyState/examples/EmptyState.md
  • packages/react-core/src/components/FileUpload/examples/FileUpload.md

3
</Label>
<Label color="blue" icon={<ExclamationCircleIcon />}>
<Label color="blue" icon={<RhUiErrorFillIcon />}>
Copy link

@coderabbitai coderabbitai bot Mar 25, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

Blue status label is using an error icon; likely wrong semantic mapping.
<Label color="blue" ...> currently renders RhUiErrorFillIcon, which conflicts with the blue/info status convention used elsewhere in this migration.

Suggested fix
 import RhUiWarningFillIcon from '@patternfly/react-icons/dist/js/icons/rh-ui-warning-fill-icon';
+import RhUiInformationFillIcon from '@patternfly/react-icons/dist/js/icons/rh-ui-information-fill-icon';
 ...
-      <Label color="blue" icon={<RhUiErrorFillIcon />}>
+      <Label color="blue" icon={<RhUiInformationFillIcon />}>
         3
       </Label>
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@packages/react-core/src/demos/examples/Card/CardStatus.tsx` at line 218, The
blue status Label in CardStatus.tsx is using RhUiErrorFillIcon which is
semantically incorrect; update the JSX where Label color="blue" and
icon={<RhUiErrorFillIcon />} to use the info icon (e.g., replace
RhUiErrorFillIcon with RhUiInfoFillIcon or the designated info icon export) so
the icon matches the blue/info status convention, and ensure you import the
chosen RhUiInfoFillIcon at the top of the file if not already imported.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we actually just update all these Labels in this demo to use the status prop instead of the color prop?

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@thatblindgeye, great idea! Using status on Label also fixes the original semantic mismatch (the blue label was incorrectly using the error icon) since the component's built-in statusIcons mapping already handles the correct icon per status. We can also drop the icon prop entirely and remove the two imports that become unused.

  • Replace all five color+icon Label combos with status in drawerTitle
  • Remove the now-unused RhUiWarningFillIcon and RhUiNotificationFillIcon imports (still needed elsewhere: RhUiCheckCircleFillIcon and RhUiErrorFillIcon)

🧠 Learnings used
Learnt from: arpanroy41
Repo: patternfly/patternfly-react PR: 12237
File: packages/react-core/src/components/Toolbar/examples/ToolbarFlexGrowAndWidths.tsx:6-6
Timestamp: 2026-02-06T19:58:49.801Z
Learning: In the PatternFly React repository, React may be used without an explicit import in TSX files because React is provided globally by the build configuration. You can reference React types (e.g., React.FunctionComponent, React.ReactNode) without importing React. Do not add 'import React from 'react'' in TSX files; rely on the global React availability.

Failed to handle agent chat message. Please try again.

import CheckCircleIcon from '@patternfly/react-icons/dist/js/icons/check-circle-icon';
import InfoCircleIcon from '@patternfly/react-icons/dist/js/icons/info-circle-icon';
import RhUiCheckCircleFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-check-circle-fill-icon';
import RhUiInformationFillIcon from '@patternfly/react-icons/dist/js/icons/rh-ui-information-fill-icon';
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Find mixed react-icons module path usage in markdown demos/examples
rg -n "@patternfly/react-icons/dist/(js|esm)/icons/" packages/react-core/src/demos packages/react-core/src/components --glob "*.md" --glob "*.tsx"

Repository: patternfly/patternfly-react

Length of output: 50384


🏁 Script executed:

# Check if the file exists and examine it
if [ -f "packages/react-core/src/demos/Tabs.md" ]; then
  echo "=== File found: packages/react-core/src/demos/Tabs.md ==="
  wc -l "packages/react-core/src/demos/Tabs.md"
  echo ""
  echo "=== First 15 lines ==="
  head -15 "packages/react-core/src/demos/Tabs.md"
else
  echo "File not found at packages/react-core/src/demos/Tabs.md"
  echo ""
  echo "Searching for Tabs.md files in the repository:"
  find . -name "Tabs.md" -type f
fi

Repository: patternfly/patternfly-react

Length of output: 1074


Use the ESM icon path to maintain consistent module targets.

Line 8 imports from dist/js while all other icon imports in this file use dist/esm, which can cause module resolution inconsistency during bundling.

Suggested fix
-import RhUiInformationFillIcon from '@patternfly/react-icons/dist/js/icons/rh-ui-information-fill-icon';
+import RhUiInformationFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-information-fill-icon';
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
import RhUiInformationFillIcon from '@patternfly/react-icons/dist/js/icons/rh-ui-information-fill-icon';
import RhUiInformationFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-information-fill-icon';
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@packages/react-core/src/demos/Tabs.md` at line 8, The import for the icon
uses the CommonJS path; update the RhUiInformationFillIcon import to use the ESM
package to match other imports in this file—replace the current
'@patternfly/react-icons/dist/js/icons/rh-ui-information-fill-icon' import with
the ESM path
'@patternfly/react-icons/dist/esm/icons/rh-ui-information-fill-icon' so module
targets remain consistent (locate the import of RhUiInformationFillIcon in
Tabs.md and change its module path).

Copy link
Contributor

@thatblindgeye thatblindgeye left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall lgtm. I edited this core issue patternfly/patternfly#8127 to mention some additional areas in Core where status icon updates still need to be made thanks to you updating them here.

Only thing is I think the above comments from CodeRabbit should be addressed (also left a reply to the 1st one)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update status icons to rh-ui icons

3 participants