Skip to content

[internal] Update some host-reference entries#48225

Open
silviuaavram wants to merge 3 commits intomui:v7.xfrom
silviuaavram:dev/update-more-host-refs
Open

[internal] Update some host-reference entries#48225
silviuaavram wants to merge 3 commits intomui:v7.xfrom
silviuaavram:dev/update-more-host-refs

Conversation

Copilot AI review requested due to automatic review settings April 8, 2026 06:20
@silviuaavram silviuaavram added the internal Behind-the-scenes enhancement. Formerly called “core”. label Apr 8, 2026
@mui-bot
Copy link
Copy Markdown

mui-bot commented Apr 8, 2026

Netlify deploy preview

https://deploy-preview-48225--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 7a314cd

Copy link
Copy Markdown
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 internal PR updates hardcoded documentation host URLs to point to the v7 docs domain and annotates those references with #host-reference markers to make them easier to locate/manage across the repo.

Changes:

  • Updated the docs host in buildColorTypes output to use https://v7.mui.com/.
  • Switched several inline “learn more”/API documentation links from https://mui.com to https://v7.mui.com.
  • Added // #host-reference markers near these hardcoded host references.

Reviewed changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated 1 comment.

File Description
scripts/buildColorTypes.js Updates the HOST used for generated color preview JSDoc image links to v7.mui.com and marks it as a host reference.
packages/mui-utils/src/elementTypeAcceptingRef/elementTypeAcceptingRef.ts Updates the “caveat with refs” help link to v7.mui.com and adds a host-reference marker.
packages/mui-system/src/ThemeProvider/ThemeProvider.d.ts Updates the ThemeProvider API doc link to v7.mui.com and adds a host-reference marker.
packages/mui-system/src/cssVars/createCssVarsProvider.js Updates the dev-only guidance link to v7.mui.com and adds a host-reference marker.

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

warningHint = 'Did you accidentally provide a React.Fragment instead?';
}

// #host-reference
Copy link

Copilot AI Apr 8, 2026

Choose a reason for hiding this comment

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

The // #host-reference comment is not indented even though it sits inside elementTypeAcceptingRef. This breaks the file’s consistent indentation and may fail formatting/lint checks; indent it to match the surrounding block (same level as the if (warningHint !== undefined) that follows).

Suggested change
// #host-reference
// #host-reference

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal Behind-the-scenes enhancement. Formerly called “core”.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants