Skip to content

fix(shadcn): cover Base UI popups and trim dependencies - #1042

Merged
domgan-oai merged 1 commit into
octanejs:mainfrom
openai-oss-forks:codex/fix-shadcn-issue-1037
Sep 10, 2026
Merged

domgan-oai merged 1 commit into
octanejs:mainfrom
openai-oss-forks:codex/fix-shadcn-issue-1037

Conversation

@domgan-oai

@domgan-oai domgan-oai commented Sep 10, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Match shadcn 4.21.0's default menu transform by removing unused Select menu hooks from the Octane source and React reference.
  • Compare opened Select and Navigation Menu portal content with the pinned React implementations, including Select options and scroll controls.
  • Move clsx and tailwind-merge from published runtime dependencies to development dependencies; update generated registry and lockfile integrity records.

Why

Addresses item 4 of #1037. The old Select classes have no rules in the shipped theme, and the previous differential compared only the mount containers while Base UI placed the popups under document.body.

Changes

  • Assert the Select popup omits the unused classes. The pinned CLI's default menu transform removes them.
  • Resolve each popup through its trigger's aria-controls, verify the two runtimes have distinct portals, and compare the portaled positioner markup after opening. Exercise option selection, scroll buttons, and Escape.
  • Regenerate both Select registry entries and all parity lockfile digests affected by the workspace lockfile change.

Validation

  • pnpm sync
  • shadcn source typecheck and scoped changed-test typecheck
  • shadcn, shadcn-differential, and shadcn-base-ui-differential Vitest projects: 355 tests passed
  • shadcn parity manifest, registry, coverage, formatting, and frozen lockfile checks
  • Full repository pnpm test and pnpm typecheck (CI)

Risk / follow-ups

  • The portal differential normalizes transient focus and animation attributes; it does not certify browser layout or pointer behavior.

Provenance

  • An agent produced this diff (agent-authored)

View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.


Note

Low Risk
Focused UI class and test/dependency packaging changes; portal differential tests normalize transient attrs and do not change runtime auth or data paths.

Overview
Aligns Base UI Select styling with shadcn 4.21.0’s default menu transform by dropping unused cn-menu-target and cn-menu-translucent classes from SelectContent (shipped source, registry, and the pinned React differential reference).

Differential coverage now opens Select and Navigation Menu and compares portaled positioner/popup markup (via trigger aria-controls), including Select options, scroll buttons, selection, and Navigation Menu Escape close—not just the closed trigger shell.

Consumer deps: clsx and tailwind-merge move out of @octanejs/shadcn runtime dependencies into devDependencies (class merging stays on the cn helper path for apps). Workspace lockfile digest updates propagate through react-parity audit JSON and evals manifest overlay hashes.

Reviewed by Cursor Bugbot for commit c721343. Bugbot is set up for automated code reviews on this repo. Configure here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent-authored Diff or issue body substantially produced by an AI agent fix PR: bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant