Skip to content

Commit

Permalink
[docs] Fix a couple documentation errors (#35217)
Browse files Browse the repository at this point in the history
  • Loading branch information
danilo-leal committed Nov 22, 2022
1 parent ab9ef05 commit b8b1e0d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
15 changes: 11 additions & 4 deletions docs/data/joy/components/autocomplete/Playground.js
Expand Up @@ -32,9 +32,17 @@ export default function Playground() {
position: 'sticky',
top: 'var(--MuiDocs-header-height)',
zIndex: 2,
border: '1px solid rgba(62, 80, 96, 0.3)',
border: '1px solid',
borderColor: (theme) =>
theme.palette.mode === 'dark'
? 'rgba(62, 80, 96, 0.3)'
: theme.palette.neutral[100],

borderRadius: 'xs',
background: 'rgba(0,30,60, 0.95)',
background: (theme) =>
theme.palette.mode === 'dark'
? 'rgba(0,30,60, 0.95)'
: theme.palette.primary[50],
}}
>
<FormControl sx={{ width: 300, mx: 'auto' }}>
Expand All @@ -46,7 +54,7 @@ export default function Playground() {
/>
</FormControl>
<Divider sx={{ mt: 4, mb: 2 }} />
<Box sx={{ display: 'flex', alignItems: 'baseline' }}>
<Box sx={{ display: 'flex', alignItems: 'baseline', mb: 2 }}>
<Typography
id="flags-playground"
level="body3"
Expand All @@ -71,7 +79,6 @@ export default function Playground() {
</Link>
)}
</Box>
<Divider sx={{ my: 2 }} />
</Box>
<Box sx={{ minWidth: 0, flexBasis: 300, flexGrow: 1 }}>
<List
Expand Down
2 changes: 1 addition & 1 deletion docs/data/joy/components/divider/divider.md
Expand Up @@ -21,7 +21,7 @@ Dividers separate content into clear groups.
After [installation](/joy-ui/getting-started/installation/), you can start building with this component using the following basic elements:

```jsx
import Avatar from '@mui/joy/Divider';
import Divider from '@mui/joy/Divider';

export default function MyApp() {
return <Divider />;
Expand Down

0 comments on commit b8b1e0d

Please sign in to comment.