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
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/translations/api-docs/table-row/table-row.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"componentDescription": "Will automatically set dynamic row height\nbased on the material table element parent (head, body, etc).",
"propDescriptions": {
"children": {
"description": "Should be valid &lt;tr&gt; children such as <code>TableCell</code>."
"description": "Should be valid <code>&lt;tr&gt;</code> children such as <code>TableCell</code>."
},
"classes": { "description": "Override or extend the styles applied to the component." },
"component": {
Expand Down
2 changes: 1 addition & 1 deletion packages/mui-material/src/TableRow/TableRow.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { TableRowClasses } from './tableRowClasses';

export interface TableRowOwnProps {
/**
* Should be valid <tr> children such as `TableCell`.
* Should be valid `<tr>` children such as `TableCell`.
*/
children?: React.ReactNode;
/**
Expand Down
2 changes: 1 addition & 1 deletion packages/mui-material/src/TableRow/TableRow.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ TableRow.propTypes /* remove-proptypes */ = {
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
// └─────────────────────────────────────────────────────────────────────┘
/**
* Should be valid <tr> children such as `TableCell`.
* Should be valid `<tr>` children such as `TableCell`.
*/
children: PropTypes.node,
/**
Expand Down
Loading