base-ui icon indicating copy to clipboard operation
base-ui copied to clipboard

[docs][dialog] Add demo for custom focus management

Open mnajdova opened this issue 1 month ago • 6 comments

Part of https://github.com/mui/base-ui/issues/3027.

Preview: https://deploy-preview-3139--base-ui.netlify.app/react/components/dialog#custom-focus-management

mnajdova avatar Nov 05 '25 14:11 mnajdova

vite-css-base-ui-example

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

commit: 9b5ef25

pkg-pr-new[bot] avatar Nov 05 '25 14:11 pkg-pr-new[bot]

Bundle size report

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

Details of bundle changes


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

mui-bot avatar Nov 05 '25 14:11 mui-bot

Deploy Preview for base-ui ready!

Name Link
Latest commit 9b5ef259de0b751e161fe830d252fd3d66b596cd
Latest deploy log https://app.netlify.com/projects/base-ui/deploys/6926d737b574a30008b0c492
Deploy Preview https://deploy-preview-3139--base-ui.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

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

netlify[bot] avatar Nov 05 '25 14:11 netlify[bot]

I think it'd be worth changing this to be a demo that configures both initialFocus and finalFocus; also Popover might be a good one to add this for as well

atomiks avatar Nov 06 '25 04:11 atomiks

I think it'd be worth changing this to be a demo that configures both initialFocus and finalFocus; also Popover might be a good one to add this for as well

Good idea, added 👌

mnajdova avatar Nov 06 '25 08:11 mnajdova

This should be moved above the code block: Screenshot 2025-11-25 at 9 38 26 pm

atomiks avatar Nov 25 '25 10:11 atomiks