Skip to content

Commit

Permalink
[docs] Improve visual look of loose lists
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Feb 14, 2023
1 parent af5b3f5 commit 82a0bfd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ import { useRadioGroup } from '@mui/material/RadioGroup';
(WAI-ARIA: https://www.w3.org/WAI/ARIA/apg/patterns/radio/)

- All form controls should have labels, and this includes radio buttons, checkboxes, and switches. In most cases, this is done by using the `<label>` element ([FormControlLabel](/material-ui/api/form-control-label/)).

- When a label can't be used, it's necessary to add an attribute directly to the input component.
In this case, you can apply the additional attribute (e.g. `aria-label`, `aria-labelledby`, `title`) via the `inputProps` property.

Expand Down
5 changes: 5 additions & 0 deletions docs/src/modules/components/MarkdownElement.js
Original file line number Diff line number Diff line change
Expand Up @@ -434,10 +434,15 @@ const Root = styled('div')(
},
},
'& li': {
// tight lists https://spec.commonmark.org/0.30/#tight
marginBottom: 4,
'& pre': {
marginTop: theme.spacing(1),
},
// loose lists https://spec.commonmark.org/0.30/#loose
'& > p': {
marginBottom: theme.spacing(1),
},
},
}),
{
Expand Down

0 comments on commit 82a0bfd

Please sign in to comment.