chore(ArrowRightIcon): Update any uses of FA arrow right icon to RH brand arrow right icon#12365
chore(ArrowRightIcon): Update any uses of FA arrow right icon to RH brand arrow right icon#12365tlabaj wants to merge 3 commits intopatternfly:mainfrom
Conversation
…and arrow right icon
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (5)
✅ Files skipped from review due to trivial changes (5)
WalkthroughReplaced Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Possibly related PRs
Suggested reviewers
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
|
Preview: https://pf-react-pr-12365.surge.sh A11y report: https://pf-react-pr-12365-a11y.surge.sh |
There was a problem hiding this comment.
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
⛔ Files ignored due to path filters (1)
packages/react-core/src/components/SearchInput/__tests__/__snapshots__/SearchInput.test.tsx.snapis excluded by!**/*.snap
📒 Files selected for processing (7)
packages/react-core/src/components/Accordion/examples/Accordion.mdpackages/react-core/src/components/Accordion/examples/AccordionBordered.tsxpackages/react-core/src/components/Button/examples/Button.mdpackages/react-core/src/components/Button/examples/ButtonCallToAction.tsxpackages/react-core/src/components/Nav/examples/Nav.mdpackages/react-core/src/components/SearchInput/SearchInput.tsxpackages/react-core/src/demos/examples/Card/CardHorizontalGrid.tsx
kmcfaul
left a comment
There was a problem hiding this comment.
Should this be "microns" or "ui" set?
@kmcfaul How do I find that out? What are micron vs ui set? |
What: towards #12244
Replaced
ArrowRightIconwith Red Hat UIRhUiCaretRightIconwherever the legacy arrow-right icon was used.Changes
SearchInput: Advanced-search action iconSearchInputsnapshot updates for the new SVG outputSummary by CodeRabbit