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

Introduce calculatable numeric types #1432

Merged
merged 34 commits into from
Jun 21, 2023
Merged

Introduce calculatable numeric types #1432

merged 34 commits into from
Jun 21, 2023

Conversation

Jym77
Copy link
Contributor

@Jym77 Jym77 commented Jun 15, 2023

Part of #1202

  • Duplicate all Numeric sub-types into calculatable versions.
  • Use calculatable numeric in style properties.
  • Keep fixed numeric in more complex types (color, shadow, …)
  • Assorted clean up.
  • Automatically infer dimension's type kind (Unit,Length, …) and canonical unit (px, …) from the type representation ("length", …)
  • Introduce a Foo.Canonical abstraction; ultimately all CSS types should have it and the other intermediate abstractions (Calculated, Fixed) should probably be hidden away.

@Jym77
Copy link
Contributor Author

Jym77 commented Jun 15, 2023

!pr extract

@Jym77 Jym77 changed the title Calculated numeric types Introduce calculatable numeric types Jun 15, 2023
@Jym77 Jym77 self-assigned this Jun 15, 2023
@Jym77 Jym77 added the major Backwards-incompatible change that touches public API label Jun 15, 2023
@Jym77
Copy link
Contributor Author

Jym77 commented Jun 15, 2023

!pr extract

@Jym77
Copy link
Contributor Author

Jym77 commented Jun 15, 2023

!pr extract

@Jym77
Copy link
Contributor Author

Jym77 commented Jun 15, 2023

!pr extract

@Jym77 Jym77 marked this pull request as ready for review June 15, 2023 14:29
@Jym77 Jym77 requested review from a team and rcj-siteimprove June 15, 2023 14:29
@Jym77
Copy link
Contributor Author

Jym77 commented Jun 16, 2023

!pr extract

Copy link
Contributor

@rcj-siteimprove rcj-siteimprove left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, just found one typo in a changeset

.changeset/hip-baboons-applaud.md Outdated Show resolved Hide resolved
Co-authored-by: Rolf Christian Jørgensen <114920418+rcj-siteimprove@users.noreply.github.com>
@Jym77 Jym77 added this pull request to the merge queue Jun 21, 2023
Merged via the queue into main with commit f4cda0e Jun 21, 2023
@Jym77 Jym77 deleted the calculated-numeric-types branch June 21, 2023 12:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
major Backwards-incompatible change that touches public API
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants