Skip to content

[docs][popover] Add close button to demos - #6095

Draft
aarongarciah wants to merge 1 commit into
mui:masterfrom
aarongarciah:claude/popover-docs-examples-5c6d8a
Draft

aarongarciah wants to merge 1 commit into
mui:masterfrom
aarongarciah:claude/popover-docs-examples-5c6d8a

Conversation

@aarongarciah

@aarongarciah aarongarciah commented Oct 23, 2026 •

Copy link
Copy Markdown
Member

Preview: https://deploy-preview-6095--base-ui.netlify.app/react/components/popover

The Popover demos looked like tooltips or toasts and never rendered Popover.Close, so screen reader users could only dismiss them with Escape. Every demo now has an X close button, last in the DOM.

The demos looked like tooltips or toasts and never rendered
Popover.Close, so screen reader users could only dismiss them with
Escape. Every demo now has an X close button, the hero-based demos use
shipping copy with a link, and the animating demo's panels are renamed
to Shipping, Returns and Profile.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@pkg-pr-new

pkg-pr-new Bot commented Oct 23, 2026

Copy link
Copy Markdown

commit: a59f4c5

@code-infra-dashboard

code-infra-dashboard Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

Bundle size

Bundle Parsed size Gzip size
@base-ui/react 0B(0.00%) 0B(0.00%)

Details of bundle changes

Performance

Total duration: 375.22 ms -11.58 ms(-3.0%) | Renders: 75 (+0) | Paint: 685.91 ms -32.14 ms(-4.5%)

No significant changes — details


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

@aarongarciah aarongarciah added docs Improvements or additions to the documentation. component: popover Changes related to the popover component. labels Oct 23, 2026
@netlify

netlify Bot commented Oct 23, 2026

Copy link
Copy Markdown

✅ Deploy Preview for base-ui ready!

Name Link
🔨 Latest commit a59f4c5
🔍 Latest deploy log https://app.netlify.com/projects/base-ui/deploys/6adb8e1c66fe989a1856665d
😎 Deploy Preview https://deploy-preview-6095--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.

@aarongarciah
aarongarciah requested a review from jjenzz October 23, 2026 16:48
@aarongarciah

Copy link
Copy Markdown
Member Author

@jjenzz how does this feel? I tried to keep it simple and avoid a form inside the popover by having a link.

@aarongarciah aarongarciah changed the title [docs][popover] Add a close button and a link to the demos [docs][popover] Add close button to demos Oct 23, 2026
@jjenzz

jjenzz commented Oct 23, 2026 •

Copy link
Copy Markdown
Member

@aarongarciah much better !! thank you :) this has made me wonder if we should make the button an "info" icon button which is a really common use-case for these?

also, have you tried opening it with a keyboard? it autofocuses the link atm which felt a bit jarring at first (focus outline). I understand why, but dno, should we make it focus the popover on open instead?

This branch has not been deployed

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

Labels

component: popover Changes related to the popover component. docs Improvements or additions to the documentation.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants