Skip to content
This repository was archived by the owner on Sep 30, 2025. It is now read-only.

Conversation

jesstelford
Copy link
Contributor

@jesstelford jesstelford commented Nov 2, 2022

Basically just #7403, but with added support for animate: (and non-shorthand variants).

After diving down a rabbit hole of trying to parse animate: declarations, I realised the parts we care about are identical to the transition: ones I've already done, and the changes were minimal to add support 🎉

Also added flags for turning on/off the transition/animation handlers (plus tests).

@jesstelford jesstelford changed the base branch from main to migrate-motion November 2, 2022 05:45
@jesstelford
Copy link
Contributor Author

/snapit

@github-actions
Copy link
Contributor

github-actions bot commented Nov 2, 2022

🫰✨ Thanks @jesstelford! Your snapshots have been published to npm.

Test the snapshots by updating your package.json with the newly published versions:

yarn add @shopify/plugin-polaris@0.0.0-snapshot-release-20221102054907
yarn add @shopify/polaris-migrator@0.0.0-snapshot-release-20221102054907

@jesstelford jesstelford force-pushed the migrate-motion branch 4 times, most recently from b5d8db5 to 3876095 Compare November 3, 2022 00:56
Base automatically changed from migrate-motion to main November 3, 2022 01:00
@jesstelford jesstelford force-pushed the migrate-animatable branch 2 times, most recently from a423198 to 3c28678 Compare November 3, 2022 03:16

if (isKeyOf(easingFuncHandlers, node.value)) {
easingFuncHandlers[node.value](node, decl);
if (ignoreUnknownFunctions) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Discovered a bug where transition-timing-function: nonsense was not flagged as an error. This flag (and surrounding logic catches it).

@jesstelford
Copy link
Contributor Author

/snapit

@github-actions
Copy link
Contributor

github-actions bot commented Nov 3, 2022

🫰✨ Thanks @jesstelford! Your snapshots have been published to npm.

Test the snapshots by updating your package.json with the newly published versions:

yarn add @shopify/plugin-polaris@0.0.0-snapshot-release-20221103032324
yarn add @shopify/polaris-icons@0.0.0-snapshot-release-20221103032324
yarn add @shopify/polaris-migrator@0.0.0-snapshot-release-20221103032324
yarn add @shopify/polaris@0.0.0-snapshot-release-20221103032324
yarn add @shopify/stylelint-polaris@0.0.0-snapshot-release-20221103032324

@jesstelford
Copy link
Contributor Author

/snapit

@jesstelford
Copy link
Contributor Author

/snapit

@github-actions
Copy link
Contributor

github-actions bot commented Nov 3, 2022

🫰✨ Thanks @jesstelford! Your snapshots have been published to npm.

Test the snapshots by updating your package.json with the newly published versions:

yarn add @shopify/plugin-polaris@0.0.0-snapshot-release-20221103041932
yarn add @shopify/polaris-icons@0.0.0-snapshot-release-20221103041932
yarn add @shopify/polaris-migrator@0.0.0-snapshot-release-20221103041932
yarn add @shopify/polaris@0.0.0-snapshot-release-20221103041932
yarn add @shopify/stylelint-polaris@0.0.0-snapshot-release-20221103041932

Copy link
Member

@sam-b-rose sam-b-rose left a comment

Choose a reason for hiding this comment

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

Nice work incorporating animation declarations. I made a lot of revisions in the renaming PR (#7606) and can take over merging this into the new structure 🎉 📁 🗄️ thanks @jesstelford 🙏

sam-b-rose added a commit that referenced this pull request Nov 8, 2022
### WHY are these changes introduced?

Incorporates work from #7611 into current motion migration.

### WHAT is this pull request doing?

Add the `animation`, `animation-duration`, `animation-delay`,
`animation-timing-function` properties to the `styles-tokenize-motion`
migration.
@sam-b-rose
Copy link
Member

Going to close out this PR for now. The animation declarations have been incorporated but still lacks some of the shorthand spec positional logic. We can reference or reopen this work if needed 👍

@sam-b-rose sam-b-rose closed this Dec 5, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants