-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Mdx : Theme fontCode
not applied consistently when writing MDX
#23110
Conversation
fontCode
not applied consistently when writing MDXfontCode
not applied consistently when writing MDX
fontCode
not applied consistently when writing MDXfontCode
not applied consistently when writing MDX
return ( | ||
<ThemeProvider | ||
theme={convert({ | ||
...overrideTheme, | ||
fontCode: typography.fonts.mono, | ||
fontBase: typography.fonts.base, | ||
})} | ||
> | ||
{syntaxHighlighter} | ||
</ThemeProvider> | ||
); | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you explain why this is required? I'd assume the fix code/ui/components/src/syntaxhighlighter/syntaxhighlighter.tsx
would be enough on it's own?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @ndelangen for the review. We have passed the content of code
from here
which is not actually the Code
defined over here
So fix over code/ui/components/src/syntaxhighlighter/syntaxhighlighter.tsx
is not enough.
Issue: #21804
What I did
fontFamily: theme.typography.fonts.mono
to fix the issue oftypography.fonts.mono
to use the user defined fontCode in order to fix the issue related toSource
How to test
fontCode
not applied consistently when writing MDX #21804Ref
GitStart Ticket
Demo