-
Notifications
You must be signed in to change notification settings - Fork 30
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
Adjust paragraph default font size to 16px #6007
Conversation
Noting here that we took a look at 16px paragraphs in-office and confirmed this PR is a good intermediate step. The above questions of converting Grommet font sizes to This PR can be approved once Sean recommends a |
There isn't necessarily a universal standard for I'd like to see both 1.5 |
Just mirroring my comment in a Slack thread - the 1.4 spacing is a bit too tight. OK to move forward with the 1.5 line spacing. |
I updated a couple more places in the code where line-height was using units other than pixels, percentage, or unitless. There will have to be a larger sweep to address #6028, but this is a good start for now 👍 |
lib-user components look good! 🚀 |
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.
LGTM 👍
Note that I'll do a design review with @seanmiller26 in-office next week to make any further font size adjustments.
Package
lib-grommet-theme
lib-react-components
app-content-pages
lib-classifier
I might be making further adjustments to app-project
Linked Issue and/or Talk Post
By default, most browsers use a font size value of 16px, not 14px. Rather than display paragraphs in a smaller than average font size, let's make our default paragraph 16px. I'll link any design resources from Sean here too.
❓ Should our font sizes in lib-grommet-theme actually be defined in
rem
?Edit: Yes, I've opened #6028, but will leave the necessary changes for another PR.
❓ Should Grommet's Text component default 'medium' also be 16px?
Edit: No, we'll leave Text medium as 14px for now.
Describe your changes
size
prop is defined for a Paragraph throughout FEM.pxToRem()
helper from lib-react-components. It's more efficient to simply use therem
unit directly in styling code than rely on Javascript for conversion.How to Review
Checklist
PR Creator - Please cater the checklist to fit the review needed for your code changes.
PR Reviewer - Use the checklist during your review. Each point should be checkmarked or discussed before PR approval.
General
yarn panic && yarn bootstrap
ordocker-compose up --build
and FEM works as expectedGeneral UX
Example Staging Project: i-fancy-cats