Skip to content

chore(ArrowRightIcon): Update any uses of FA arrow right icon to RH brand arrow right icon#12365

Open
tlabaj wants to merge 3 commits intopatternfly:mainfrom
tlabaj:arrowrighticon
Open

chore(ArrowRightIcon): Update any uses of FA arrow right icon to RH brand arrow right icon#12365
tlabaj wants to merge 3 commits intopatternfly:mainfrom
tlabaj:arrowrighticon

Conversation

@tlabaj
Copy link
Copy Markdown
Contributor

@tlabaj tlabaj commented Apr 20, 2026

What: towards #12244

Replaced ArrowRightIcon with Red Hat UI RhUiCaretRightIcon wherever the legacy arrow-right icon was used.

Changes

  • Examples / demos: Accordion, Button, Nav, Card horizontal grid
  • SearchInput: Advanced-search action icon
  • Tests: SearchInput snapshot updates for the new SVG output

Summary by CodeRabbit

  • Style
    • Standardized the right-caret icon across Accordion, Bordered Accordion, Button (including Call to Action), Navigation, Search Input, Card examples/demos to ensure consistent visual presentation of navigation and action indicators.

@tlabaj tlabaj requested review from a team, nicolethoen and wise-king-sullyman and removed request for a team April 20, 2026 20:40
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 20, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: d52d99c1-acdf-453b-807d-788f793fb90c

📥 Commits

Reviewing files that changed from the base of the PR and between d1098e5 and b4a7b39.

📒 Files selected for processing (5)
  • packages/react-core/src/components/Accordion/examples/Accordion.md
  • packages/react-core/src/components/Button/examples/Button.md
  • packages/react-core/src/components/Nav/examples/Nav.md
  • packages/react-core/src/demos/CardDemos.md
  • packages/react-core/src/demos/examples/Card/CardHorizontalGrid.tsx
✅ Files skipped from review due to trivial changes (5)
  • packages/react-core/src/components/Nav/examples/Nav.md
  • packages/react-core/src/components/Accordion/examples/Accordion.md
  • packages/react-core/src/demos/CardDemos.md
  • packages/react-core/src/components/Button/examples/Button.md
  • packages/react-core/src/demos/examples/Card/CardHorizontalGrid.tsx

Walkthrough

Replaced ArrowRightIcon imports/usages with RhUiCaretRightIcon across examples and one component; only icon imports and JSX icon props were changed, with no logic, control flow, or public API modifications.

Changes

Cohort / File(s) Summary
Accordion examples
packages/react-core/src/components/Accordion/examples/Accordion.md, packages/react-core/src/components/Accordion/examples/AccordionBordered.tsx
Replaced ArrowRightIcon import/usage with RhUiCaretRightIcon in Accordion examples.
Button examples
packages/react-core/src/components/Button/examples/Button.md, packages/react-core/src/components/Button/examples/ButtonCallToAction.tsx
Updated call-to-action / example button icon from ArrowRightIcon to RhUiCaretRightIcon.
Nav example
packages/react-core/src/components/Nav/examples/Nav.md
Swapped ArrowRightIcon for RhUiCaretRightIcon in Nav example imports.
SearchInput component
packages/react-core/src/components/SearchInput/SearchInput.tsx
Replaced submit/search button icon ArrowRightIcon with RhUiCaretRightIcon in SearchInputBase.
Card demos
packages/react-core/src/demos/examples/Card/CardHorizontalGrid.tsx, packages/react-core/src/demos/CardDemos.md
Replaced ArrowRightIcon import/usages with RhUiCaretRightIcon for link-style "View all…" buttons and demo index.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

Possibly related PRs

Suggested reviewers

  • nicolethoen
  • thatblindgeye
  • kmcfaul
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and specifically describes the main change: updating Font Awesome ArrowRightIcon usage to the Red Hat UI RhUiCaretRightIcon across the codebase, which aligns with all the file changes shown in the summary.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ 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
Copy Markdown
Collaborator

patternfly-build commented Apr 20, 2026

Copy link
Copy Markdown

@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: 3

🤖 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/components/Button/examples/ButtonCallToAction.tsx`:
- Line 2: The import of RhUiCaretRightIcon uses a non-standard nested path;
update the import in ButtonCallToAction.tsx to the standard pattern by importing
RhUiCaretRightIcon from
'@patternfly/react-icons/dist/esm/icons/rh-ui-caret-right-icon' (replace the
current
'@patternfly/react-icons/icons/caret-right-icon/dist/esm/icons/rh-ui-caret-right-icon'
import) so it matches other Button examples and the Button.md usage.

In `@packages/react-core/src/components/SearchInput/SearchInput.tsx`:
- Line 11: The import path for RhUiCaretRightIcon in SearchInput.tsx is
malformed—remove the extraneous "/icons/caret-right-icon/" segment so it matches
the other PatternFly icon imports; update the import statement that references
RhUiCaretRightIcon (used by the SearchInput component) to the correct module
path (e.g., '@patternfly/react-icons/dist/esm/icons/rh-ui-caret-right-icon') so
module resolution succeeds.

In `@packages/react-core/src/demos/examples/Card/CardHorizontalGrid.tsx`:
- Line 23: The import at the top incorrectly pulls RhUiCaretRightIcon from
'arrow-right-icon'; update the import to use the correct module
'rh-ui-caret-right-icon' so the RhUiCaretRightIcon symbol used in
CardHorizontalGrid (affecting usages at the render locations that reference
RhUiCaretRightIcon around the blocks near lines 137, 165, 196, 230) resolves to
the intended asset. Ensure the import statement exports the RhUiCaretRightIcon
identifier (same name) from
'@patternfly/react-icons/dist/esm/icons/rh-ui-caret-right-icon' and remove the
incorrect 'arrow-right-icon' path.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 44cf94ba-f9fc-44b4-b3a9-3bd6914a5beb

📥 Commits

Reviewing files that changed from the base of the PR and between 6558bdd and 1bcf5ed.

⛔ Files ignored due to path filters (1)
  • packages/react-core/src/components/SearchInput/__tests__/__snapshots__/SearchInput.test.tsx.snap is excluded by !**/*.snap
📒 Files selected for processing (7)
  • packages/react-core/src/components/Accordion/examples/Accordion.md
  • packages/react-core/src/components/Accordion/examples/AccordionBordered.tsx
  • packages/react-core/src/components/Button/examples/Button.md
  • packages/react-core/src/components/Button/examples/ButtonCallToAction.tsx
  • packages/react-core/src/components/Nav/examples/Nav.md
  • packages/react-core/src/components/SearchInput/SearchInput.tsx
  • packages/react-core/src/demos/examples/Card/CardHorizontalGrid.tsx

Comment thread packages/react-core/src/components/Button/examples/ButtonCallToAction.tsx Outdated
Comment thread packages/react-core/src/components/SearchInput/SearchInput.tsx Outdated
Comment thread packages/react-core/src/demos/examples/Card/CardHorizontalGrid.tsx Outdated
@tlabaj tlabaj requested review from a team April 21, 2026 15:58
Copy link
Copy Markdown
Contributor

@kmcfaul kmcfaul left a comment

Choose a reason for hiding this comment

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

Should this be "microns" or "ui" set?

@tlabaj
Copy link
Copy Markdown
Contributor Author

tlabaj commented Apr 22, 2026

Should this be "microns" or "ui" set?

@kmcfaul How do I find that out? What are micron vs ui set?

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants