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

Added --ease-anticipate-* easings #419

Merged
merged 3 commits into from
Sep 29, 2023

Conversation

621alexl
Copy link
Contributor

breaking change

Added --ease-elastic-in, renamed --ease-elastic-* and --ease-squish-* to --ease-elastic-out-* and --ease-elastic-in-out-* (rename as per Adam's comment). Corresponding changes to docsite were made (adding --ease-elastic-in-* demo box and refactored for the rename).

P.S: First time OSS contributor and new to CSS, sorry it there are any issues w/ my Bezier functions or anything else.

…d --ease-squish-* to --ease-elastic-out-* and --ease-elastic-in-out-*
@stackblitz
Copy link

stackblitz bot commented Sep 29, 2023

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

Copy link
Owner

@argyleink argyleink left a comment

Choose a reason for hiding this comment

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

very thorough! thank you!

you looked around and found the ancillary areas of usage and examples and made sure it was covered 🤘🏻

I found one type and made a suggestion about it.

Other than that, the tests need updated because there's new props!

  1. https://github.com/argyleink/open-props/blob/main/test/basic.test.cjs#L7 is now 1622
  2. https://github.com/argyleink/open-props/blob/main/test/basic.test.cjs#L27 is now 424

breaking change

I fully agree this is a breaking change! I could make a v2 branch and we can adjust this PR to push to that (at which point I can start hacking on v2 changes more), but, we could also do a minor version change to 1.6.0 and put a note in the docsite about the name change? or we could even keep both names around (old squish and elastic) ones, and provide a deprecation notice. thoughts on this? in terms of a breaking change, it's pretty minor, but breaking nonetheless.

docsite/index.css Outdated Show resolved Hide resolved
621alexl and others added 2 commits September 29, 2023 14:11
Fixed typo from refactor in docsite/index.css as per Adam's comment

Co-authored-by: Adam Argyle <[email protected]>
@argyleink argyleink changed the base branch from main to v1.6 September 29, 2023 18:24
@621alexl
Copy link
Contributor Author

621alexl commented Sep 29, 2023

Accepted your changes Adam! I also made another commit to adjust the tests. Thanks for catching the typo. As for your discussion of making a v2 branch, I feel it would be nice to give users this additional prop. Why don't we go with your second proposal of making a change to 1.6.0, aliasing --ease-squish-* and --ease-elastic-* to avoid breaking anything.

@argyleink argyleink merged commit c326eee into argyleink:v1.6 Sep 29, 2023
2 checks passed
argyleink added a commit that referenced this pull request Sep 29, 2023
* version bump

* Added --ease-anticipate-* easings (#419)

* breaking change: added --ease-elastic-in, renamed --ease-elastic-* and --ease-squish-* to --ease-elastic-out-* and --ease-elastic-in-out-*

* Update docsite/index.css

Fixed typo from refactor in docsite/index.css as per Adam's comment

Co-authored-by: Adam Argyle <[email protected]>

* adjusted tests to correspond to additional props we added

---------

Co-authored-by: Alex Li <[email protected]>
Co-authored-by: Adam Argyle <[email protected]>

* document and create fallback

* update tests

---------

Co-authored-by: Alex Li <[email protected]>
Co-authored-by: Alex Li <[email protected]>
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