Skip to content

[docs-infra] Migrate to @mui/internal-docs-infra Demos#47821

Draft
dav-is wants to merge 65 commits into
mui:masterfrom
dav-is:docs-infra/migrate-demos
Draft

[docs-infra] Migrate to @mui/internal-docs-infra Demos#47821
dav-is wants to merge 65 commits into
mui:masterfrom
dav-is:docs-infra/migrate-demos

Conversation

@dav-is
Copy link
Copy Markdown
Member

@dav-is dav-is commented Feb 20, 2026

Note

This PR is a work in progress. All demos have been migrated, but not all features have been completed

Improvements:

  • Adds collpase / expand animation (experimental, still needs tweaks from a design review)
  • Maintains code state when expanding and collapsing
  • Code reset button can be undone with Ctrl+Z
  • Multi-file demos have their "Open in Github" link go to the selected file instead of the first file
  • holding backspace doesn't waste CPU re-rendering the demo
  • browser-native cursor changes color since we use content-editable instead of <textarea> overlay
  • using inspect element on highlighted code works instead of selecting the <textarea> overlay

Improvements not yet completed:

  • TS/JS button won't appear if the .ts file has no inline types (the file is exactly the same)
  • fix keyboard navigation on code toolbar
  • support for // @highlight

Preview

Migrate to @mui/internal-docs-infra:

Upstream TODO List

TODO in this PR:

  • Fix theme reset for demos
  • Tweak expand/collapse animation
  • Add dropdown to open in github, copy link, etc
  • Fix "Edit in Chat"
  • Fix fully-hidden code style of demo

@dav-is dav-is added type: enhancement It’s an improvement, but we can’t make up our mind whether it's a bug fix or a new feature. scope: docs-infra Involves the docs-infra product (https://www.notion.so/mui-org/b9f676062eb94747b6768209f7751305). labels Feb 20, 2026
@mui-bot
Copy link
Copy Markdown

mui-bot commented Feb 20, 2026

Netlify deploy preview

Bundle size report

Bundle Parsed size Gzip size
@mui/material 0B(0.00%) 0B(0.00%)
@mui/lab 0B(0.00%) 0B(0.00%)
@mui/system 0B(0.00%) 0B(0.00%)
@mui/utils 0B(0.00%) 0B(0.00%)

Details of bundle changes

Generated by 🚫 dangerJS against b2866a2

@github-actions github-actions Bot added the PR: out-of-date The pull request has merge conflicts and can't be merged. label Feb 23, 2026
@github-actions github-actions Bot removed the PR: out-of-date The pull request has merge conflicts and can't be merged. label Feb 23, 2026
@github-actions github-actions Bot added the PR: out-of-date The pull request has merge conflicts and can't be merged. label Feb 24, 2026
@github-actions github-actions Bot added the PR: out-of-date The pull request has merge conflicts and can't be merged. label May 12, 2026
@github-actions github-actions Bot removed the PR: out-of-date The pull request has merge conflicts and can't be merged. label May 12, 2026
@github-actions github-actions Bot added the PR: out-of-date The pull request has merge conflicts and can't be merged. label May 15, 2026
@github-actions github-actions Bot removed the PR: out-of-date The pull request has merge conflicts and can't be merged. label May 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope: docs-infra Involves the docs-infra product (https://www.notion.so/mui-org/b9f676062eb94747b6768209f7751305). 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.

2 participants