Skip to content

chore(menu toggle): fix avatar sizing#12543

Open
andrew-ronaldson wants to merge 1 commit into
patternfly:mainfrom
andrew-ronaldson:menu-avatar
Open

chore(menu toggle): fix avatar sizing#12543
andrew-ronaldson wants to merge 1 commit into
patternfly:mainfrom
andrew-ronaldson:menu-avatar

Conversation

@andrew-ronaldson

@andrew-ronaldson andrew-ronaldson commented Jul 8, 2026

Copy link
Copy Markdown
Collaborator

Closes https://redhat.atlassian.net/browse/PF-4383

This PR is a small update to apply a size to the avatars inside the menu toggles.

Summary by CodeRabbit

  • Style
    • Updated the menu toggle example to use a smaller avatar icon consistently across all states.
    • Adjusted formatting and line breaks in the example for readability.

@coderabbitai

coderabbitai Bot commented Jul 8, 2026

Copy link
Copy Markdown

Review Change Stack

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: ce8a6767-1532-475f-a4a5-c90287581d65

📥 Commits

Reviewing files that changed from the base of the PR and between e4e15d3 and af99bb6.

📒 Files selected for processing (1)
  • packages/react-core/src/components/MenuToggle/examples/MenuToggleAvatarText.tsx

Walkthrough

The MenuToggleAvatarText example is updated so that the Avatar icon used in each of the three MenuToggle instances (default, expanded, disabled) explicitly specifies size="sm", along with minor JSX formatting adjustments.

Changes

MenuToggleAvatarText Avatar Sizing

Layer / File(s) Summary
Set Avatar size in MenuToggle example
packages/react-core/src/components/MenuToggle/examples/MenuToggleAvatarText.tsx
Avatar icons in the default, expanded, and disabled MenuToggle instances now use size="sm", with surrounding JSX reformatted.

Estimated code review effort: 1 (Trivial) | ~2 minutes

🚥 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 matches the main change: fixing avatar sizing in menu toggle usage.
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.
✨ 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.

@patternfly-build

patternfly-build commented Jul 8, 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