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

[material-ui][docs][TableRow] Escape markup in children prop so docgen tools don't parse it as HTML #40992

Merged
merged 6 commits into from Feb 12, 2024

Conversation

millerized
Copy link
Contributor

@millerized millerized commented Feb 7, 2024

This is a minor change to the TableRow TS prop description that allows docgen parsers to use the description without rendering the markup as HTML. See screenies for example:

Before

image image

After

image

Signed-off-by: Steve Miller <millerized@me.com>
@mui-bot
Copy link

mui-bot commented Feb 7, 2024

Netlify deploy preview

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

Bundle size report

No bundle size changes (Toolpad)
No bundle size changes

Generated by 🚫 dangerJS against 0bb8193

Signed-off-by: Steve Miller <millerized@me.com>
Copy link
Member

@ZeeshanTamboli ZeeshanTamboli left a comment

Choose a reason for hiding this comment

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

@millerized, I don't see this error in the API docs for the TableRow component when I run the docs server locally. Can you show on which page the error is shown?

@ZeeshanTamboli ZeeshanTamboli added docs Improvements or additions to the documentation component: table This is the name of the generic UI component, not the React module! labels Feb 8, 2024
@ZeeshanTamboli ZeeshanTamboli changed the title Escape markup so docgen tools don't parse it as HTML [material-ui][docs][TableRow] Escape markup so docgen tools don't parse it as HTML Feb 8, 2024
@ZeeshanTamboli ZeeshanTamboli added the package: material-ui Specific to @mui/material label Feb 8, 2024
@millerized
Copy link
Contributor Author

@millerized, I don't see this error in the API docs for the TableRow component when I run the docs server locally. Can you show on which page the error is shown?

Hi @ZeeshanTamboli! Thanks for your help. This error occurs in my storybook documentation that uses react-ts-docgen to create the props tables. This change is just a minor improvement for folks that are consuming the MUI types in their own systems.

Signed-off-by: Steve Miller <millerized@me.com>
Copy link
Member

@ZeeshanTamboli ZeeshanTamboli left a comment

Choose a reason for hiding this comment

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

@millerized Looks fine!

@ZeeshanTamboli ZeeshanTamboli changed the title [material-ui][docs][TableRow] Escape markup so docgen tools don't parse it as HTML [material-ui][docs][TableRow] Escape markup in children prop so docgen tools don't parse it as HTML Feb 12, 2024
@ZeeshanTamboli ZeeshanTamboli merged commit 6ab4972 into mui:master Feb 12, 2024
22 checks passed
@millerized millerized deleted the patch-1 branch February 13, 2024 14:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: table This is the name of the generic UI component, not the React module! docs Improvements or additions to the documentation package: material-ui Specific to @mui/material
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants