Skip to content

Commit

Permalink
[docs] Fix MarkdownElement regression from adding CSS variables (mu…
Browse files Browse the repository at this point in the history
  • Loading branch information
siriwatknp authored and felipe.richter committed Dec 6, 2022
1 parent cd1489b commit 6b8411f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/src/modules/components/MarkdownElement.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ const Root = styled('div')(
...lightTheme.typography.body2,
fontFamily: lightTheme.typography.fontFamilyCode,
fontWeight: 400,
letterSpacing: '0.01071em',
WebkitFontSmoothing: 'subpixel-antialiased',
},
'& pre > code': {
Expand Down Expand Up @@ -412,6 +411,10 @@ const Root = styled('div')(
}),
{
':where(.mode-dark) &': {
'& :not(pre) > code': {
// inline code block
color: '#fff',
},
'& strong': {
color: `var(--muidocs-palette-grey-200, ${darkTheme.palette.grey[200]})`,
},
Expand Down Expand Up @@ -509,6 +512,7 @@ const Root = styled('div')(
color: `var(--muidocs-palette-primary-light, ${darkTheme.palette.primary.light})`,
},
'& kbd.key': {
color: '#fff',
backgroundColor: `var(--muidocs-palette-primaryDark-900, ${darkTheme.palette.primaryDark[900]})`,
border: `1px solid var(--muidocs-palette-primaryDark-500, ${darkTheme.palette.primaryDark[500]})`,
boxShadow: `inset 0 -1px 0 var(--muidocs-palette-primaryDark-700, ${darkTheme.palette.primaryDark[700]})`,
Expand Down

0 comments on commit 6b8411f

Please sign in to comment.