Skip to content

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

@changeset-bot
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
@codesandbox-ci
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

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