Skip to content

Conversation

@Janpot
Copy link
Member

@Janpot Janpot commented Jan 21, 2026

Noticed while working on #47635, demos were not using the correct fonts in iframes.

Screen.Recording.2026-01-21.at.11.25.11.mov

@mui-bot
Copy link

mui-bot commented Jan 21, 2026

Netlify deploy preview

https://deploy-preview-47660--material-ui.netlify.app/

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 56194c0

@Janpot Janpot added scope: docs-infra Involves the docs-infra product (https://www.notion.so/mui-org/b9f676062eb94747b6768209f7751305). type: bug It doesn't behave as expected. labels Jan 21, 2026
@Janpot Janpot requested review from Copilot and siriwatknp January 21, 2026 10:33
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR attempts to fix font loading issues in iframe demos by adding a srcDoc attribute with Google Fonts link for Roboto. The goal is to prevent demos from falling back to system fonts (Helvetica/Arial) when displayed in iframes.

Changes:

  • Added srcDoc attribute to iframe elements in DemoSandbox.js with basic HTML structure
  • Included Google Fonts stylesheet link for Roboto font (weights 300, 400, 500, 700)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 2 comments.

@Janpot Janpot merged commit cdc9429 into mui:master Jan 26, 2026
19 checks passed
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: bug It doesn't behave as expected.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants