Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[docs-infra] Cleanup code on demo code block expansion #38522

Merged

Conversation

ZeeshanTamboli
Copy link
Member

@ZeeshanTamboli ZeeshanTamboli commented Aug 17, 2023

Screenshot 2023-08-21 at 00 29 54

A warning is being thrown in docs while running it locally regarding showSourceHint prop not being recognized by React on a DOM element. This might be due to the replacement of the ToggleCodeTooltip component with Material UI's Button component in pull request #38421, which is now forwarding the prop.

Noticed while running the docs locally.

@ZeeshanTamboli ZeeshanTamboli added the scope: docs-infra Specific to the docs-infra product label Aug 17, 2023
@mui-bot
Copy link

mui-bot commented Aug 17, 2023

Netlify deploy preview

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

Bundle size report

No bundle size changes (Toolpad)
No bundle size changes

Generated by 🚫 dangerJS against ff8fe08

@ZeeshanTamboli ZeeshanTamboli marked this pull request as ready for review August 17, 2023 13:24
@ZeeshanTamboli ZeeshanTamboli changed the title [docs-infra] Cleanup code on code block expansion [docs-infra] Cleanup code on demo code block expansion Aug 17, 2023
Copy link
Contributor

@danilo-leal danilo-leal left a comment

Choose a reason for hiding this comment

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

Will let @alexfauquette approve it from an engineering standpoint but thank you for tackling this! Appreciate it! 🤙

Copy link
Member

@alexfauquette alexfauquette left a comment

Choose a reason for hiding this comment

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

Thanks for the cleaning 👍

I will remember to open the console for the comming docs updates 🙈😊

@ZeeshanTamboli ZeeshanTamboli merged commit a2ef8a6 into mui:master Aug 17, 2023
@ZeeshanTamboli ZeeshanTamboli deleted the cleanup-code-code-block-expansion branch August 17, 2023 14:27
@oliviertassinari oliviertassinari added the bug 🐛 Something doesn't work label Aug 17, 2023
@oliviertassinari
Copy link
Member

Sometimes, I wonder if we shouldn't have a test in the CI to smoke test these. For example, we have

Screenshot 2023-08-21 at 00 30 51

since #37319 (comment). Now, I can't think of any way that isn't overkill, so maybe it's OK.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work scope: docs-infra Specific to the docs-infra product
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants