Skip to content

fix(registry): add explicit width to ColorDropdownMenuItems to prevent dropdown clipping (#5052) - #5079

Closed
Samarth1306w wants to merge 1 commit into
udecode:mainfrom
Samarth1306w:fix/color-picker-dropdown-sizing-5052
Closed

fix(registry): add explicit width to ColorDropdownMenuItems to prevent dropdown clipping (#5052)#5079
Samarth1306w wants to merge 1 commit into
udecode:mainfrom
Samarth1306w:fix/color-picker-dropdown-sizing-5052

Conversation

@Samarth1306w

@Samarth1306w Samarth1306w commented Aug 5, 2026

Copy link
Copy Markdown
  • Auto release

🎯 Summary

Fixes #5052 — Font colour toolbar component has fragile dropdown sizing.

🔍 Root Cause Analysis

When opening the font color or background color picker dropdown in a toolbar with constrained width, ColorDropdownMenuItems's 10-column grid (grid-cols-[repeat(10,1fr)]) lacked an explicit container width, causing the color items to shrink and clip horizontally.

🛠️ Surgical Patch Breakdown

  1. apps/www/src/registry/ui/font-color-toolbar-button.tsx:
    Added explicit width (w-[276px]) to ColorDropdownMenuItems's grid container so all 10 color columns allocate full required width without horizontal clipping.
  2. .changeset/fix-font-color-toolbar-button-dropdown-width.md: Added patch changeset for registry UI.

🧪 Verification & Test Coverage

  • Layout Verification: Verified ColorDropdownMenuItems allocates exact 276px container width for all 10 color swatches + gaps.
  • Changeset Included: Patch changeset generated for www registry UI.
  • Clean Merge: Branch rebased cleanly against main with 0 conflicts.

…t dropdown clipping (#5052)

When font or background color picker dropdown was opened in a narrow toolbar,
ColorDropdownMenuItems's 10-column grid clipped horizontally because no explicit width
was set on the grid container.

Fix:
- Add w-[276px] to ColorDropdownMenuItems grid container in font-color-toolbar-button.tsx.
- Add patch changeset for registry UI.

Closes #5052
@codesandbox

codesandbox Bot commented Aug 5, 2026

Copy link
Copy Markdown

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

@changeset-bot

changeset-bot Bot commented Aug 5, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 8bd1a99

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 0 packages

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@dosubot dosubot Bot added size:XS This PR changes 0-9 lines, ignoring generated files. patch Bugfix & documentation PR labels Aug 5, 2026
@zbeyens zbeyens closed this Aug 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

patch Bugfix & documentation PR size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Font colour toolbar component has fragile dropdown sizing

3 participants