[CSSReset] HTML headings don't work as expected
See original GitHub issueI noticed an issue when using react-markdown which uses html tags for rendering markdown.
Apparently, the CSSReset sets font-size
and font-weight
for h1-h6 to inherit
This causes HTML headings to not have the look that one would expect as seen in this sandbox.
https://codesandbox.io/s/rough-violet-84oif
However, if I remove the styling via devtools, they look fine.
It also seems that the CSSReset is doing other things as well that affect the look and feel of the site, which would probably fit better inside the default theme, while leaving the actual resets like body margins and such inside the reset.
For example:
Another thing that I noticed is that without the CSSReset, some styling breaks, such as this <Textarea>
extending over a <Flex>
. This might be related to something else though but I managed to fix it with <Textarea width="initial">
Issue Analytics
- State:
- Created 4 years ago
- Reactions:3
- Comments:10 (1 by maintainers)
Top GitHub Comments
Has anyone found the solution for this issue?
@subodhk01, this is the solution I found: chakra-ui-markdown-renderer.