-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Component refresh tweaks III #1055
Conversation
This pull request is being automatically deployed with ZEIT Now (learn more). 🔍 Inspect: https://zeit.co/primer/primer-css/akk8brezm |
<span class="Counter Counter--small mr-1 Counter--gray">456</span> | ||
<span class="Counter Counter--small mr-1">1.5K</span> | ||
``` | ||
|
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 see you deleting the docs here, but I didn't see Counter--small
deleted in the css. Missed or already deleted before?
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.
Yep, the .Counter--small
doesn't exist anymore and I just forgot to remove it from the docs. We might can consider adding a .Counter--large
if we ever need it.
Here a few more "Component refresh" tweaks
Buttons
There are some changes to the primary and outline buttons:
Before
After
Sizes
This PR also reverts using only line-height for setting a component's height and instead uses again a mix of line-height and padding (and border). There are some places on dotcom that use custom padding and would blow them up too much with a large line-height.
The buttons are still only
32px
in height (instead of34px
) so it matches our sizing scale. It leaves the line-height unchanged to20px
but uses5px
y-padding instead of6px
.👀 Preview