-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Components: Stop using rems #72669
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
Components: Stop using rems #72669
Conversation
|
Size Change: -17 B (0%) Total Size: 2.27 MB
ℹ️ View Unchanged
|
| --antialiasing-factor: 100; | ||
| &[aria-orientation='horizontal'] { | ||
| --fade-width: 4rem; | ||
| --fade-width: 64px; |
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.
|
|
||
| .components-modal__header-heading { | ||
| font-size: 1.2rem; | ||
| font-size: $font-size-x-large; |
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.
| margin: 8px 0 0; | ||
| font-family: $font-family-body; | ||
| font-size: 0.75rem; | ||
| font-size: $font-size-small; |
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.
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
|
FYI I tagged this as a bug, but given it only affects usage of the |
|
Flaky tests detected in 6336b70. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/18783586782
|
aduth
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.
LGTM 👍
|
Sounds good to me. |
jameskoster
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.
Nice :)




What?
Removes the usage of
remunits in@wordpress/components.Why?
Our component system is not generally scaled based on rems, which means that sporadic usage of rems can cause unintended inconsistencies in other projects where 1rem is not 16px.
Testing Instructions
See Storybook stories for the affected components. Screenshots are provided in the inline comments.