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

[docs] Fix MarkdownElement regression from adding CSS variables #35096

Merged
merged 7 commits into from Nov 14, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 5 additions & 1 deletion docs/src/modules/components/MarkdownElement.js
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': {
siriwatknp marked this conversation as resolved.
Show resolved Hide resolved
// 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',
siriwatknp marked this conversation as resolved.
Show resolved Hide resolved
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