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

Fix animations #408

Draft
wants to merge 1 commit into
base: next
Choose a base branch
from
Draft

Fix animations #408

wants to merge 1 commit into from

Conversation

cristoferespindola
Copy link

Description

Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.

Fixes # (issue)

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • Visual Testing
  • Automated Testing
  • Accessibility Testing

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

@changeset-bot
Copy link

changeset-bot bot commented Jul 21, 2023

⚠️ No Changeset found

Latest commit: 7d89ee1

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@netlify
Copy link

netlify bot commented Jul 21, 2023

Deploy Preview for outlinejs ready!

Name Link
🔨 Latest commit 7d89ee1
🔍 Latest deploy log https://app.netlify.com/sites/outlinejs/deploys/64baecede741d20008b78ef1
😎 Deploy Preview https://deploy-preview-408--outlinejs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@socket-security
Copy link

New dependencies detected. Learn more about Socket for GitHub ↗︎

Packages Version New capabilities Transitives Size Publisher
@lit-labs/motion 1.0.3 None +0 155 kB lit-robot

@bardleb bardleb added the Held for Review Held for review. Considered as a Draft/POC. label Aug 1, 2023
@bardleb
Copy link

bardleb commented Aug 1, 2023

I'm not sure we want to force animations into core components as not every project may want them. Holding for review by Jake.

Copy link
Contributor

Choose a reason for hiding this comment

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

This update should happen as a separate request/PR.

And if adding .env.local, it should be at teh top with the other .env-local version.

@@ -61,6 +61,7 @@
"reset:install": "yarn install",
"restart": "yarn reset && yarn start",
"start": "yarn storybook dev -p ${npm_package_storybook_port}",
"start:local": "yarn storybook dev -p 7777",
Copy link
Contributor

Choose a reason for hiding this comment

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

This should not be included. You can change the port number in your package.json for an individual project with "sbport": 6099, You can update that as you like, and commit to your project repo.

Comment on lines +14 to +16
transition-property: color, text-decoration;
transition-timing-function: ease-in;
transition-duration: 300ms;
Copy link
Contributor

Choose a reason for hiding this comment

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

In order to generalize this enough for Outline, these three CSS rules will need to have CSS Variables in places matching the pattern of other in the component that allow for them to be customized, and turned off by default.

Comment on lines 24 to +26
transition-property: color, background-color, border-color,
text-decoration-color, fill, stroke, outline, outline-color;
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
text-decoration-color, fill, stroke, outline, outline-color, box-shadow;
transition-timing-function: ease-in;
Copy link
Contributor

Choose a reason for hiding this comment

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

In order to generalize this enough for Outline, these three CSS rules will need to have CSS Variables in places matching the pattern of other in the component that allow for them to be customized, and turned off by default.

Copy link
Contributor

Choose a reason for hiding this comment

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

We should find a way this can also be optional by default. Modal might be the one component where the animations might be logical by default, but in most cases, we should code it such that it is an optional, yet easy configuration.

@glitchgirl glitchgirl marked this pull request as draft February 6, 2024 14:34
@glitchgirl
Copy link
Contributor

TODO

  • Jake review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Held for Review Held for review. Considered as a Draft/POC.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants