fix(theme): wrap toggle button items to prevent clipped overflow - #4234
fix(theme): wrap toggle button items to prevent clipped overflow#4234logonoff wants to merge 1 commit into
Conversation
Changed Packages
|
PR Summary by QodoFix theme: allow ToggleButtonGroup items to wrap to avoid overflow clipping
AI Description
Diagram
High-Level Assessment
Files changed (2)
|
Code Review by Qodo
1. Global ToggleGroup layout change
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4234 +/- ##
=======================================
Coverage 58.40% 58.40%
=======================================
Files 2438 2438
Lines 96960 96961 +1
Branches 26937 26937
=======================================
+ Hits 56628 56629 +1
Misses 40135 40135
Partials 197 197
*This pull request uses carry forward flags. Click here to find out more. Continue to review full report in Codecov by Harness.
🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Pull request overview
This PR updates the theme package’s MUI component overrides to prevent MuiToggleButtonGroup content from being clipped by allowing toggle buttons to wrap onto multiple rows.
Changes:
- Add
MuiToggleButtonGroupstyleOverrides.rootwithflexWrap: 'wrap'and a vertical gap between wrapped rows. - Add a changeset to publish a patch release of
@red-hat-developer-hub/backstage-plugin-theme.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| workspaces/theme/plugins/theme/src/utils/createComponents.ts | Adds a MUI MuiToggleButtonGroup style override to allow wrapping and prevent overflow clipping. |
| workspaces/theme/.changeset/polite-eggs-care.md | Declares a patch changeset for the theme package describing the toggle button wrapping fix. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| components.MuiToggleButtonGroup = { | ||
| styleOverrides: { | ||
| root: { | ||
| flexWrap: 'wrap', | ||
| rowGap: 8, |
Signed-off-by: logonoff <git@logonoff.co>
f7bc7b6 to
ed082f8
Compare
|



Hey, I just made a Pull Request!
before:

after:

✔️ Checklist