Skip to content

Commit

Permalink
[AlertTitle][BreadCrumbs] Fix inheritance message in docs (#38876)
Browse files Browse the repository at this point in the history
  • Loading branch information
sai6855 authored Sep 12, 2023
1 parent 1915190 commit b1894ed
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/pages/material-ui/api/alert-title.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"muiName": "MuiAlertTitle",
"forwardsRefTo": "HTMLDivElement",
"filename": "/packages/mui-material/src/AlertTitle/AlertTitle.js",
"inheritance": null,
"inheritance": { "component": "Typography", "pathname": "/material-ui/api/typography/" },
"demos": "<ul><li><a href=\"/material-ui/react-alert/\">Alert</a></li></ul>",
"cssComponent": false
}
2 changes: 1 addition & 1 deletion docs/pages/material-ui/api/breadcrumbs.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"muiName": "MuiBreadcrumbs",
"forwardsRefTo": "HTMLElement",
"filename": "/packages/mui-material/src/Breadcrumbs/Breadcrumbs.js",
"inheritance": null,
"inheritance": { "component": "Typography", "pathname": "/material-ui/api/typography/" },
"demos": "<ul><li><a href=\"/material-ui/react-breadcrumbs/\">Breadcrumbs</a></li></ul>",
"cssComponent": false
}
1 change: 1 addition & 0 deletions packages/mui-material/src/AlertTitle/AlertTitle.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,6 @@ export interface AlertTitleProps extends StandardProps<React.HTMLAttributes<HTML
* API:
*
* - [AlertTitle API](https://mui.com/material-ui/api/alert-title/)
* - inherits [Typography API](https://mui.com/material-ui/api/typography/)
*/
export default function AlertTitle(props: AlertTitleProps): JSX.Element;
3 changes: 2 additions & 1 deletion packages/mui-material/src/AlertTitle/AlertTitle.test.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
import * as React from 'react';
import { createRenderer, describeConformance } from 'test/utils';
import AlertTitle, { alertTitleClasses as classes } from '@mui/material/AlertTitle';
import Typography from '@mui/material/Typography';

describe('<AlertTitle />', () => {
const { render } = createRenderer();

describeConformance(<AlertTitle />, () => ({
classes,
inheritComponent: 'div',
inheritComponent: Typography,
render,
muiName: 'MuiAlertTitle',
refInstanceof: window.HTMLDivElement,
Expand Down
1 change: 1 addition & 0 deletions packages/mui-material/src/Breadcrumbs/Breadcrumbs.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ export interface BreadcrumbsTypeMap<
* API:
*
* - [Breadcrumbs API](https://mui.com/material-ui/api/breadcrumbs/)
* - inherits [Typography API](https://mui.com/material-ui/api/typography/)
*/
declare const Breadcrumbs: OverridableComponent<BreadcrumbsTypeMap>;

Expand Down
3 changes: 2 additions & 1 deletion packages/mui-material/src/Breadcrumbs/Breadcrumbs.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,15 @@ import {
strictModeDoubleLoggingSuppressed,
} from 'test/utils';
import Breadcrumbs, { breadcrumbsClasses as classes } from '@mui/material/Breadcrumbs';
import Typography from '@mui/material/Typography';
import FirstPageIcon from '../internal/svg-icons/FirstPage';

describe('<Breadcrumbs />', () => {
const { render } = createRenderer();

describeConformance(<Breadcrumbs>Conformance?</Breadcrumbs>, () => ({
classes,
inheritComponent: 'nav',
inheritComponent: Typography,
render,
muiName: 'MuiBreadcrumbs',
refInstanceof: window.HTMLElement,
Expand Down

0 comments on commit b1894ed

Please sign in to comment.