Skip to content

fix(CopyIcon): Replace CopyIcon with RhUiCopyFillIcon#12449

Open
rebeccaalpert wants to merge 1 commit into
patternfly:mainfrom
rebeccaalpert:replace-copy-icon-with-rh-ui-copy-fill
Open

fix(CopyIcon): Replace CopyIcon with RhUiCopyFillIcon#12449
rebeccaalpert wants to merge 1 commit into
patternfly:mainfrom
rebeccaalpert:replace-copy-icon-with-rh-ui-copy-fill

Conversation

@rebeccaalpert

@rebeccaalpert rebeccaalpert commented Jun 12, 2026

Copy link
Copy Markdown
Member

What:
This is one piece of #12400. Breaking it up by icon so it is easier to review.

As a follow on, we may also want to update org: patternfly/patternfly-org#5036

Additional issues:

Summary by CodeRabbit

  • Style
    • Updated copy icon appearance across CodeEditor, Button, ClipboardCopy, CodeBlock, ToggleGroup, Tooltip, and demo applications for a consistent visual experience.

Co-authored-by: Cursor <cursoragent@cursor.com>
@coderabbitai

coderabbitai Bot commented Jun 12, 2026

Copy link
Copy Markdown

Review Change Stack

Walkthrough

Replace the deprecated CopyIcon with PatternFly's RhUiCopyFillIcon across core production components, component examples, documentation, and the demo application in a single coordinated update.

Changes

Icon replacement migration

Layer / File(s) Summary
Core production implementation
packages/react-code-editor/src/components/CodeEditor/CodeEditor.tsx, packages/react-core/src/components/ClipboardCopy/ClipboardCopyButton.tsx
CodeEditor and ClipboardCopyButton import and render RhUiCopyFillIcon instead of CopyIcon for their respective copy button icons.
Component examples and documentation
packages/react-core/src/components/Button/examples/*, packages/react-core/src/components/CodeBlock/examples/CodeBlock.md, packages/react-core/src/components/ToggleGroup/examples/*, packages/react-core/src/components/Tooltip/examples/*
Button, CodeBlock, ToggleGroup, and Tooltip example components and markdown files update their icon imports from CopyIcon to RhUiCopyFillIcon, demonstrating the new icon variant across six component families.
Demo application
packages/react-integration/demo-app-ts/src/components/demos/ToggleGroupDemo/ToggleGroupDemo.tsx
ToggleGroupDemo adds the RhUiCopyFillIcon import and updates two ToggleGroupItem copy buttons to use the new icon.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~5 minutes

Suggested labels

Needs design review

Suggested reviewers

  • nicolethoen
  • thatblindgeye
  • kmcfaul
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and specifically describes the main change: replacing CopyIcon with RhUiCopyFillIcon across the codebase. It is concise, accurate, and directly relates to all file modifications.
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.
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

patternfly-build commented Jun 12, 2026

Copy link
Copy Markdown
Collaborator

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.

2 participants