-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Remove custom and unnecessary font weight properties #4648
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
Conversation
size-limit report
|
| border: border(transparent); | ||
| font-family: inherit; | ||
| font-size: inherit; | ||
| font-weight: inherit; |
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 believe this property can be safely removed since font-weight is being set to 400 via @include text-style-input on line 91
Removed font-family and font-size since they are set in the mixin. Replaced font-family: inherit with explicit font-family() function for clarity. Co-Authored-By: Kyle Durand <6844391+kyledurand@users.noreply.github.com>
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 great. We just need to remove the values from:
| buttonFontWeight: '500', |
kyledurand
left a comment
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.
Just the conflicts to clean up then
!
…ithub.com/Shopify/polaris-react into 4598-remove-font-weight-custom-properties
This reverts commit 281f173.
WHY are these changes introduced?
Part of solution for #4598
Cleaning up
--p-button-font-weightand--p-badge-font-weightwill allow our team to easily find and replacefont-weight: 400in the future when we define new tokens.Removing up any unneeded global font-weight properties (ex.
font-weight: inherit) will help keep our code clean and succinct.WHAT is this pull request doing?
Replacing or removing the following font-weight values:
--p-button-font-weight--p-badge-font-weightinheritHow to 🎩
🖥 Local development instructions
🗒 General tophatting guidelines
📄 Changelog guidelines
Copy-paste this code in
playground/Playground.tsx:🎩 checklist
README.mdwith documentation changes