Skip to content

Commit

Permalink
[joy-ui][docs] Remove Unnecessary Styles
Browse files Browse the repository at this point in the history
1. `--ListItem-gap`: removed the gap for each list item. Since every list item only has one child, the gap isn’t useless.
2. `--ListItemDecorator-size`: got rid of this style because no decorator was used, and it’s not needed.
  • Loading branch information
cipherlogs committed Mar 9, 2024
1 parent fd78ad5 commit 49106a4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export default function ColorInversionFooter() {
size="sm"
orientation="horizontal"
wrap
sx={{ flexGrow: 0, '--ListItem-radius': '8px', '--ListItem-gap': '0px' }}
sx={{ flexGrow: 0, '--ListItem-radius': '8px' }}
>
<ListItem nested sx={{ width: { xs: '50%', md: 140 } }}>
<ListSubheader sx={{ fontWeight: 'xl' }}>Sitemap</ListSubheader>
Expand All @@ -121,7 +121,7 @@ export default function ColorInversionFooter() {
</ListItem>
<ListItem nested sx={{ width: { xs: '50%', md: 180 } }}>
<ListSubheader sx={{ fontWeight: 'xl' }}>Products</ListSubheader>
<List sx={{ '--ListItemDecorator-size': '32px' }}>
<List>
<ListItem>
<ListItemButton>Joy UI</ListItemButton>
</ListItem>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export default function ColorInversionFooter() {
size="sm"
orientation="horizontal"
wrap
sx={{ flexGrow: 0, '--ListItem-radius': '8px', '--ListItem-gap': '0px' }}
sx={{ flexGrow: 0, '--ListItem-radius': '8px' }}
>
<ListItem nested sx={{ width: { xs: '50%', md: 140 } }}>
<ListSubheader sx={{ fontWeight: 'xl' }}>Sitemap</ListSubheader>
Expand All @@ -126,7 +126,7 @@ export default function ColorInversionFooter() {
</ListItem>
<ListItem nested sx={{ width: { xs: '50%', md: 180 } }}>
<ListSubheader sx={{ fontWeight: 'xl' }}>Products</ListSubheader>
<List sx={{ '--ListItemDecorator-size': '32px' }}>
<List>
<ListItem>
<ListItemButton>Joy UI</ListItemButton>
</ListItem>
Expand Down

0 comments on commit 49106a4

Please sign in to comment.