-
Notifications
You must be signed in to change notification settings - Fork 273
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
fix: inline code font size #753
fix: inline code font size #753
Conversation
This pull request is being automatically deployed with ZEIT Now (learn more). 🔍 Inspect: https://zeit.co/carbon-design-system/gatsby-theme-carbon/f6yafovch |
td > code { | ||
font-size: 12px; | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Without this it was computing to 12.25px instead of 12px. Has something to do with the specificity in the page-table scss file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think It was computing to 12.25 because it was using em. So when the font size goes down to 14, .875*14 = 12.25
@@ -11,13 +11,17 @@ | |||
position: relative; | |||
display: inline; | |||
padding: 0 0.5em; | |||
font-size: 0.75em; | |||
font-size: 0.875em; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
font-size: 0.875em; | |
font-size: 0.75rem; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks like it shoulda been rem
so it's relative to the root instead of whatever the current font-size is.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vpicone changing it to .75rem
makes it too small(12). should be 14px for body text.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Whoops! My bad, I’d just leave the r in there so it’s /16 instead of /whatever the current font size is.
@vpicone just updated to |
Closes #459