Skip to content

Commit

Permalink
fix regression
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Dec 3, 2022
1 parent 544ff64 commit d2dec51
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions docs/src/modules/components/MarkdownElement.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ const Root = styled('div')(
'& p, & ul, & ol': {
marginTop: 0,
marginBottom: 16,
color: `var(--muidocs-palette-grey-900, ${lightTheme.palette.grey[900]})`,
},
'& ul': {
paddingLeft: 30,
Expand Down Expand Up @@ -245,11 +246,14 @@ const Root = styled('div')(
borderRadius: `var(--muidocs-shape-borderRadius, ${
theme.shape?.borderRadius ?? lightTheme.shape.borderRadius
}px)`,
'& > p, & > ul': {
'& > ul, & > p': {
'&:last-child': {
margin: 0,
},
},
'& > p, & ul, li': {
color: 'inherit',
},
'&.MuiCallout-error': {
color: `var(--muidocs-palette-error-900, ${lightTheme.palette.error[900]})`,
backgroundColor: `var(--muidocs-palette-error-50, ${lightTheme.palette.error[50]})`,
Expand Down Expand Up @@ -418,7 +422,7 @@ const Root = styled('div')(
},
},
'& li': {
marginBottom: 2,
marginBottom: 4,
'& pre': {
marginTop: theme.spacing(1),
},
Expand Down Expand Up @@ -452,6 +456,9 @@ const Root = styled('div')(
'& h5': {
color: `var(--muidocs-palette-grey-300, ${darkTheme.palette.grey[300]})`,
},
'& p, & ul, & ol': {
color: `var(--muidocs-palette-grey-400, ${darkTheme.palette.grey[400]})`,
},
'& h1, & h2, & h3, & h4': {
'&:hover .anchor-link-style, & .comment-link-style': {
color: `var(--muidocs-palette-text-secondary, ${darkTheme.palette.text.secondary})`,
Expand Down

0 comments on commit d2dec51

Please sign in to comment.