Skip to content

Commit

Permalink
[ListItemText] Fix display block issue (#20039)
Browse files Browse the repository at this point in the history
  • Loading branch information
psdr03 committed Mar 8, 2020
1 parent f377f37 commit 49fb53d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/material-ui/src/ListItemText/ListItemText.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ const ListItemText = React.forwardRef(function ListItemText(props, ref) {
variant={dense ? 'body2' : 'body1'}
className={classes.primary}
component="span"
display="block"
{...primaryTypographyProps}
>
{primary}
Expand All @@ -66,6 +67,7 @@ const ListItemText = React.forwardRef(function ListItemText(props, ref) {
variant="body2"
className={classes.secondary}
color="textSecondary"
display="block"
{...secondaryTypographyProps}
>
{secondary}
Expand Down

0 comments on commit 49fb53d

Please sign in to comment.