Skip to content

Commit

Permalink
[docs][dialog] Fix padding in SimpleDialog demo (#44467)
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari authored Nov 25, 2024
1 parent 2eb8e42 commit 0c51224
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/data/material/components/dialogs/SimpleDialogDemo.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function SimpleDialog(props) {
<DialogTitle>Set backup account</DialogTitle>
<List sx={{ pt: 0 }}>
{emails.map((email) => (
<ListItem disableGutters key={email}>
<ListItem disablePadding key={email}>
<ListItemButton onClick={() => handleListItemClick(email)}>
<ListItemAvatar>
<Avatar sx={{ bgcolor: blue[100], color: blue[600] }}>
Expand All @@ -43,7 +43,7 @@ function SimpleDialog(props) {
</ListItemButton>
</ListItem>
))}
<ListItem disableGutters>
<ListItem disablePadding>
<ListItemButton
autoFocus
onClick={() => handleListItemClick('addAccount')}
Expand Down
4 changes: 2 additions & 2 deletions docs/data/material/components/dialogs/SimpleDialogDemo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function SimpleDialog(props: SimpleDialogProps) {
<DialogTitle>Set backup account</DialogTitle>
<List sx={{ pt: 0 }}>
{emails.map((email) => (
<ListItem disableGutters key={email}>
<ListItem disablePadding key={email}>
<ListItemButton onClick={() => handleListItemClick(email)}>
<ListItemAvatar>
<Avatar sx={{ bgcolor: blue[100], color: blue[600] }}>
Expand All @@ -48,7 +48,7 @@ function SimpleDialog(props: SimpleDialogProps) {
</ListItemButton>
</ListItem>
))}
<ListItem disableGutters>
<ListItem disablePadding>
<ListItemButton
autoFocus
onClick={() => handleListItemClick('addAccount')}
Expand Down

0 comments on commit 0c51224

Please sign in to comment.