Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[material-ui][Divider] Remove light prop references from docs #40782

Merged
merged 3 commits into from
Jan 25, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion docs/data/material/components/dividers/IntroDivider.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import Chip from '@mui/material/Chip';
import Stack from '@mui/material/Stack';
import Divider from '@mui/material/Divider';
import Typography from '@mui/material/Typography';
import { grey } from '@mui/material/colors';

export default function IntroDivider() {
return (
Expand All @@ -23,7 +24,7 @@ export default function IntroDivider() {
just down the hall.
</Typography>
</Box>
<Divider light />
<Divider sx={{ bgcolor: grey[50] }} />
danilo-leal marked this conversation as resolved.
Show resolved Hide resolved
<Box sx={{ p: 2 }}>
<Typography gutterBottom variant="body2">
Select type
Expand Down
3 changes: 2 additions & 1 deletion docs/data/material/components/dividers/IntroDivider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import Chip from '@mui/material/Chip';
import Stack from '@mui/material/Stack';
import Divider from '@mui/material/Divider';
import Typography from '@mui/material/Typography';
import { grey } from '@mui/material/colors';

export default function IntroDivider() {
return (
Expand All @@ -23,7 +24,7 @@ export default function IntroDivider() {
just down the hall.
</Typography>
</Box>
<Divider light />
<Divider sx={{ bgcolor: grey[50] }} />
<Box sx={{ p: 2 }}>
<Typography gutterBottom variant="body2">
Select type
Expand Down
7 changes: 4 additions & 3 deletions docs/data/material/components/dividers/ListDividers.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import List from '@mui/material/List';
import ListItem from '@mui/material/ListItem';
import ListItemText from '@mui/material/ListItemText';
import Divider from '@mui/material/Divider';
import { grey } from '@mui/material/colors';

const style = {
p: 0,
Expand All @@ -20,15 +21,15 @@ export default function ListDividers() {
<ListItem>
<ListItemText primary="Inbox" />
</ListItem>
<Divider component="li" light />
<Divider component="li" sx={{ bgcolor: grey[50] }} />
<ListItem>
<ListItemText primary="Drafts" />
</ListItem>
<Divider component="li" light />
<Divider component="li" sx={{ bgcolor: grey[50] }} />
<ListItem>
<ListItemText primary="Trash" />
</ListItem>
<Divider component="li" light />
<Divider component="li" sx={{ bgcolor: grey[50] }} />
<ListItem>
<ListItemText primary="Spam" />
</ListItem>
Expand Down
7 changes: 4 additions & 3 deletions docs/data/material/components/dividers/ListDividers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import List from '@mui/material/List';
import ListItem from '@mui/material/ListItem';
import ListItemText from '@mui/material/ListItemText';
import Divider from '@mui/material/Divider';
import { grey } from '@mui/material/colors';

const style = {
p: 0,
Expand All @@ -20,15 +21,15 @@ export default function ListDividers() {
<ListItem>
<ListItemText primary="Inbox" />
</ListItem>
<Divider component="li" light />
<Divider component="li" sx={{ bgcolor: grey[50] }} />
<ListItem>
<ListItemText primary="Drafts" />
</ListItem>
<Divider component="li" light />
<Divider component="li" sx={{ bgcolor: grey[50] }} />
<ListItem>
<ListItemText primary="Trash" />
</ListItem>
<Divider component="li" light />
<Divider component="li" sx={{ bgcolor: grey[50] }} />
<ListItem>
<ListItemText primary="Spam" />
</ListItem>
Expand Down
4 changes: 0 additions & 4 deletions docs/data/material/components/dividers/dividers.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,6 @@ The Material UI Divider component renders as a dark gray `<hr>` by default, and

{{"demo": "IntroDivider.js", "bg": true}}

:::success
Use the handy `light` prop to make the Divider slightly lighter.
:::

## Basics

```jsx
Expand Down