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 new CSS length with CSS calculations included #1416

Merged
merged 24 commits into from
May 22, 2023

Conversation

Jym77
Copy link
Contributor

@Jym77 Jym77 commented May 9, 2023

Part of #1202

Prepare the architecture for supporting CSS calculations in all numeric types, including inside "composed" type such as RGB colors.

This set up calculated lengths as a value type in alfa-css, and use them in one property in alfa-style.
Ultimately, the goal is to use that in all places, and stop exporting calculation/numeric/length, then do the same for other numeric type (plus the mixed dimension-percentage ones. This PR only showcases the solution and is big enough already…

@Jym77 Jym77 self-assigned this May 9, 2023
@Jym77 Jym77 added the minor Backwards-compatible change that touches public API label May 9, 2023
@Jym77
Copy link
Contributor Author

Jym77 commented May 9, 2023

!pr extract

@Jym77 Jym77 changed the title Fully support CSS calculation Support CSS calculations in all lengths May 12, 2023
@Jym77
Copy link
Contributor Author

Jym77 commented May 12, 2023

!pr extract

@Jym77 Jym77 marked this pull request as ready for review May 12, 2023 09:33
@Jym77 Jym77 requested review from a team and rcj-siteimprove May 12, 2023 09:33
@Jym77 Jym77 changed the title Support CSS calculations in all lengths Intorude new CSS length with CSS calculations included May 16, 2023
@Jym77 Jym77 changed the title Intorude new CSS length with CSS calculations included Introduce new CSS length with CSS calculations included May 16, 2023
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.

Great work. Just found a typo in the changeset.

.changeset/gold-pens-shave.md Outdated Show resolved Hide resolved
Co-authored-by: Rolf Christian Jørgensen <[email protected]>
@Jym77 Jym77 added this pull request to the merge queue May 22, 2023
Merged via the queue into main with commit 1f55bdb May 22, 2023
@Jym77 Jym77 deleted the alfa-css-numeric-calculation branch May 22, 2023 14:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
minor Backwards-compatible change that touches public API
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants