Skip to content

[docs-infra] Expose global theme object#47964

Merged
Janpot merged 2 commits intomui:masterfrom
Janpot:them-expose
Mar 13, 2026
Merged

[docs-infra] Expose global theme object#47964
Janpot merged 2 commits intomui:masterfrom
Janpot:them-expose

Conversation

@Janpot
Copy link
Member

@Janpot Janpot commented Mar 13, 2026

Seems to have been broken. co-locating with the comment to reduce chance of breaking again.

@mui-bot
Copy link

mui-bot commented Mar 13, 2026

Netlify deploy preview

https://deploy-preview-47964--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 32b61e2

@Janpot Janpot added scope: docs-infra Involves the docs-infra product (https://www.notion.so/mui-org/b9f676062eb94747b6768209f7751305). type: regression A bug, but worse, it used to behave as expected. labels Mar 13, 2026
@Janpot Janpot marked this pull request as ready for review March 13, 2026 09:51
@Janpot Janpot merged commit fb45fc3 into mui:master Mar 13, 2026
23 checks passed
forceThemeRerender = false,
}: React.PropsWithChildren<{ direction?: 'ltr' | 'rtl'; forceThemeRerender?: boolean }>) {
}: BrandingCssThemeProviderProps) {
const theme = React.useMemo(() => getTheme(direction), [direction]);
Copy link
Contributor

Choose a reason for hiding this comment

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

Not a big deal but while resolving the conflicts, I realised that the window.theme will not update when the value of direction changes. Should not be an issue since only the value of theme.direction changes, not the palette colors.

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: regression A bug, but worse, it used to behave as expected.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants