Skip to content
This repository has been archived by the owner on Nov 14, 2022. It is now read-only.

Theme UI styles are not applied to MDX content #602

Closed
maiertech opened this issue Dec 7, 2020 · 1 comment · Fixed by #607
Closed

Theme UI styles are not applied to MDX content #602

maiertech opened this issue Dec 7, 2020 · 1 comment · Fixed by #607
Assignees
Labels

Comments

@maiertech
Copy link
Contributor

This is a regression. Theme UI's styles object is not applied during MDX transformations.

Screen Shot 2020-12-07 at 5 47 31 PM

There is one ThemeProvider on the page that receives the correct theme prop with correct styles object. styles object should be automatically applied during MDX transformations, but it is not.

There are two nested MDXProviders on the page. The first one contains a non-empty components prop, the second one contains an empty components prop. Not clear where the second one is coming from.

@maiertech maiertech added the bug label Dec 7, 2020
@maiertech
Copy link
Contributor Author

Underlying issue: system-ui/theme-ui#1345.

@maiertech maiertech self-assigned this Dec 17, 2020
@maiertech maiertech changed the title Styles are not applied to MDX content Theme UI styles are not applied to MDX content Dec 17, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant