Skip to content

[popups] Trim shared popup boilerplate - #5192

Merged
atomiks merged 1 commit into
mui:masterfrom
atomiks:claude/tooltip-preview-card-simplify-facf78
Jul 10, 2026
Merged

atomiks merged 1 commit into
mui:masterfrom
atomiks:claude/tooltip-preview-card-simplify-facf78

Conversation

@atomiks

@atomiks atomiks commented Jul 10, 2026 •

Copy link
Copy Markdown
Contributor

Deduplicates copy-pasted popup state-attribute mappings and viewport CSS variable enums into shared constants, and removes dead branches across the popup components.

The branch is rebased onto current master. The conflict resolution keeps the shared Dialog state mapping already established on master; the remaining cleanup is behavior-preserving.

Measured against current master:

  • @base-ui/react barrel: −1,332 B parsed / −349 B gzip
  • @base-ui/react/tooltip: −534 B parsed / −171 B gzip
  • @base-ui/react/preview-card: −190 B parsed / −73 B gzip
  • @base-ui/react/popover: −150 B parsed / −59 B gzip
  • @base-ui/react/menu: −123 B parsed / −50 B gzip

Focused popup suites pass 777 jsdom tests and 1,177 Chromium tests, along with TypeScript, formatting, and lint.

@atomiks atomiks added scope: all components Widespread work has an impact on almost all components. type: enhancement It’s an improvement, but we can’t make up our mind whether it's a bug fix or a new feature. labels Jul 10, 2026
@pkg-pr-new

pkg-pr-new Bot commented Jul 10, 2026 •

Copy link
Copy Markdown
  • base-ui-tanstack-start

  • vite-css-base-ui-example

    pnpm add https://pkg.pr.new/mui/base-ui/@base-ui/react@5192
    
    pnpm add https://pkg.pr.new/mui/base-ui/@base-ui/utils@5192
    

commit: f7ecacf

@code-infra-dashboard

code-infra-dashboard Bot commented Jul 10, 2026 •

Copy link
Copy Markdown

Bundle size

Bundle Parsed size Gzip size
@base-ui/react ▼-1.33KB(-0.29%) ▼-371B(-0.25%)

Details of bundle changes

Performance

Total duration: 1,213.66 ms -35.78 ms(-2.9%) | Renders: 78 (+0) | Paint: 1,889.99 ms -53.44 ms(-2.7%)

Test Duration Renders
Select open (500 options) 42.34 ms ▼-20.18 ms(-32.3%) 14 (+0)

13 tests within noise — details


Check out the code infra dashboard for more information about this PR.

@netlify

netlify Bot commented Jul 10, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for base-ui ready!

Name Link
🔨 Latest commit f7ecacf
🔍 Latest deploy log https://app.netlify.com/projects/base-ui/deploys/6a50a203eccaf5000898f872
😎 Deploy Preview https://deploy-preview-5192--base-ui.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@atomiks
atomiks marked this pull request as ready for review July 10, 2026 06:19
@github-actions github-actions Bot added the PR: out-of-date The pull request has merge conflicts and can't be merged. label Jul 10, 2026
@atomiks
atomiks force-pushed the claude/tooltip-preview-card-simplify-facf78 branch from 5990d99 to f7ecacf Compare July 10, 2026 07:40
@github-actions github-actions Bot removed the PR: out-of-date The pull request has merge conflicts and can't be merged. label Jul 10, 2026
@atomiks
atomiks merged commit 823e1f4 into mui:master Jul 10, 2026
6 checks passed
@atomiks
atomiks deleted the claude/tooltip-preview-card-simplify-facf78 branch July 10, 2026 08:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope: all components Widespread work has an impact on almost all components. type: enhancement It’s an improvement, but we can’t make up our mind whether it's a bug fix or a new feature.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant