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

heading styles are not applied as intended #1679

Open
georg94 opened this issue Nov 9, 2021 · 0 comments
Open

heading styles are not applied as intended #1679

georg94 opened this issue Nov 9, 2021 · 0 comments

Comments

@georg94
Copy link

georg94 commented Nov 9, 2021

In a docz project I tried to change some styles and encountered some buggy behavior of the theme.
The current theme already applies styles to headings

https://github.com/doczjs/docz/blob/main/core/gatsby-theme-docz/src/theme/styles.js

{
// ...
h1: {
    fontSize: 6,
  },
  h2: {
    fontSize: 5,
  },
  h3: {
    fontSize: 4,
  },
  h4: {
    fontSize: 3,
  },
  h5: {
    fontSize: 2,
  },
  h6: {
    fontSize: 1,
  },
// ...
}

These styles are not applied to the heading tags in the DOM (no class is appended).

I debugged this issue and found this commit a9384b0.

Removing the MDXProvider from the Layout fixes the issue, but I don't know if it breaks something else. In my project everything is still working (and the styles are applied).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant