Skip to content

Commit

Permalink
[Alert] Fix support for nested elements (#20490)
Browse files Browse the repository at this point in the history
  • Loading branch information
developerKumar committed Apr 10, 2020
1 parent fa0e546 commit df9fc5d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 11 deletions.
8 changes: 4 additions & 4 deletions docs/src/pages/components/alert/DescriptionAlerts.js
Expand Up @@ -18,19 +18,19 @@ export default function DescriptionAlerts() {
<div className={classes.root}>
<Alert severity="error">
<AlertTitle>Error</AlertTitle>
This is an error alert — check it out!
This is an error alert — <strong>check it out!</strong>
</Alert>
<Alert severity="warning">
<AlertTitle>Warning</AlertTitle>
This is a warning alert — check it out!
This is a warning alert — <strong>check it out!</strong>
</Alert>
<Alert severity="info">
<AlertTitle>Info</AlertTitle>
This is an info alert — check it out!
This is an info alert — <strong>check it out!</strong>
</Alert>
<Alert severity="success">
<AlertTitle>Success</AlertTitle>
This is a success alert — check it out!
This is a success alert — <strong>check it out!</strong>
</Alert>
</div>
);
Expand Down
8 changes: 4 additions & 4 deletions docs/src/pages/components/alert/DescriptionAlerts.tsx
Expand Up @@ -20,19 +20,19 @@ export default function DescriptionAlerts() {
<div className={classes.root}>
<Alert severity="error">
<AlertTitle>Error</AlertTitle>
This is an error alert — check it out!
This is an error alert — <strong>check it out!</strong>
</Alert>
<Alert severity="warning">
<AlertTitle>Warning</AlertTitle>
This is a warning alert — check it out!
This is a warning alert — <strong>check it out!</strong>
</Alert>
<Alert severity="info">
<AlertTitle>Info</AlertTitle>
This is an info alert — check it out!
This is an info alert — <strong>check it out!</strong>
</Alert>
<Alert severity="success">
<AlertTitle>Success</AlertTitle>
This is a success alert — check it out!
This is a success alert — <strong>check it out!</strong>
</Alert>
</div>
);
Expand Down
3 changes: 0 additions & 3 deletions packages/material-ui-lab/src/Alert/Alert.js
Expand Up @@ -123,9 +123,6 @@ export const styles = (theme) => {
/* Styles applied to the message wrapper element. */
message: {
padding: '8px 0',
display: 'flex',
flexDirection: 'column',
justifyContent: 'center',
},
/* Styles applied to the action wrapper element if `action` is provided. */
action: {
Expand Down

0 comments on commit df9fc5d

Please sign in to comment.