Skip to content

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

Merged
ZeeshanTamboli merged 3 commits intomui:masterfrom
ZeeshanTamboli:cleanup-code-code-block-expansion
Aug 17, 2023
Merged

[docs-infra] Cleanup code on demo code block expansion#38522
ZeeshanTamboli merged 3 commits intomui:masterfrom
ZeeshanTamboli:cleanup-code-code-block-expansion

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

@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 type: bug It doesn't behave as expected. 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

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.

5 participants