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

Imported CSS on mdx files not applying unless a component is included #4397

Closed
1 task
darusk opened this issue Aug 20, 2022 · 1 comment · Fixed by #4443
Closed
1 task

Imported CSS on mdx files not applying unless a component is included #4397

darusk opened this issue Aug 20, 2022 · 1 comment · Fixed by #4443
Assignees
Labels
- P4: important Violate documented behavior or significantly impacts performance (priority)

Comments

@darusk
Copy link

darusk commented Aug 20, 2022

What version of astro are you using?

1.0.6

Are you using an SSR adapter? If so, which one?

None

What package manager are you using?

npm

What operating system are you using?

Windows

Describe the Bug

A css stylesheet imported in an mdx file does not have the classes applied to the output unless there is also an additional component imported and rendered on the page.

Link to Minimal Reproducible Example

https://stackblitz.com/edit/github-zaud2k?file=src/pages/index.mdx

Participation

  • I am willing to submit a pull request for this issue.
@FredKSchott FredKSchott added the - P4: important Violate documented behavior or significantly impacts performance (priority) label Aug 21, 2022
@matthewp matthewp assigned bholmesdev and unassigned matthewp Aug 23, 2022
@bholmesdev
Copy link
Contributor

Confirmed I can reproduce! Submitted a fix PR above 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
- P4: important Violate documented behavior or significantly impacts performance (priority)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants