Skip to content
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

Add scale property as unitless #3240

Merged
merged 2 commits into from
Aug 21, 2024
Merged

Conversation

justinfernald
Copy link
Contributor

@justinfernald justinfernald commented Aug 14, 2024

What:

Added scale as a unitless property.

Why:

Since scale is a fairly new well adopted property and does not take px value but instead will take unitless values or percentages and it strange to put: scale: "2"
MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/scale
W3: https://www.w3.org/TR/css-transforms-2/#propdef-scale

How:

These changes were implemented by modifying the unitless package

Checklist:

  • Documentation N/A
  • Tests N/A
  • Code complete
  • Changeset

Copy link

changeset-bot bot commented Aug 14, 2024

🦋 Changeset detected

Latest commit: 3ad87d1

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@emotion/unitless Minor
@emotion/serialize Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@justinfernald justinfernald marked this pull request as draft August 14, 2024 21:38
Copy link

codesandbox-ci bot commented Aug 14, 2024

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

@justinfernald justinfernald marked this pull request as ready for review August 15, 2024 17:29
@justinfernald
Copy link
Contributor Author

Note that React also has this implemented for their style prop: facebook/react#25601

@emmatown emmatown merged commit 153cf88 into emotion-js:main Aug 21, 2024
13 checks passed
@github-actions github-actions bot mentioned this pull request Aug 21, 2024
@justinfernald justinfernald deleted the patch-1 branch August 21, 2024 16:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants