Heading size does not work
See original GitHub issueSo i got heading with that code
<Heading as="h2" size="xs">{title}</Heading>
When i change size
prop nothing happened
In devtools I see that when focusing on my heading
.css-1fgomf8 {
font-size: sm;
line-height: shorter;
font-weight: bold;
font-family: heading;
}
in font-size
I got sm
string. Not only is this a non-working option, but it also substitutes even the wrong string
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (5 by maintainers)
Top Results From Across the Web
html - Header Size Not Changing - Stack Overflow
Under the theme options in Wordpress it says that the size for Header 1 is 35px. html · css · wordpress · Share....
Read more >Header area is too large and will not change
Header area is too large and will not change. Problem Description: I have Office Professional 2007. When I open Word the cursor is...
Read more >3.0.1 – Headings – Global Font Size Problem - WordPress.org
When global fonts are applied, all headings inherit the “Primary” settings, including font size – even when no font size is defined for...
Read more >Resetting Default Heading and Body Fonts in Word
Select +Body and the size text you want, then click Set as Default in the lower left-hand corner.
Read more >Font Size Problems? Check Here First! - Codecademy
<h1 style="color:green;font-size:16px">Big Heading</h1> <p ... I find another reason for the problem of a really weird font-size reported is the chrome set ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks for chiming in @with-heart. @osadasami, you need to double-check that:
ThemeProvider
at the root of your app.fontSizes.sm
set.I believe it should all work correctly if you try those. Let us know if it’s still an issue and we’ll revisit this.
Thank you.
I got it work with gatsbyjs. Just need to import
ThemeProvider
incomponents/layout.js
and wrap all the contentAnd all theme variables work great. Thank you