-
Notifications
You must be signed in to change notification settings - Fork 27
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
base: next
Are you sure you want to change the base?
Fix animations #408
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 |
||
"storybook": "storybook", | ||
"storybook:build": "storybook build", | ||
"test": "turbo run test" | ||
|
@@ -109,6 +110,7 @@ | |
"lint-staged": "^10.5.4", | ||
"lit-analyzer": "^1.2.1", | ||
"lit-html": "^2.3.1", | ||
"@lit-labs/motion": "^1.0.0", | ||
"npm-run-all": "^4.1.5", | ||
"postcss": "8.4.8", | ||
"postcss-custom-properties": "12.1.8", | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,9 +8,12 @@ | |
|
||
a, | ||
::slotted(a) { | ||
@apply font-body transition-colors duration-300; | ||
@apply font-body; | ||
text-decoration: var(--outline-breadcrumb--link-decoration--computed); | ||
color: var(--outline-breadcrumb--link-color--computed); | ||
transition-property: color, text-decoration; | ||
transition-timing-function: ease-in; | ||
transition-duration: 300ms; | ||
Comment on lines
+14
to
+16
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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. |
||
} | ||
|
||
a:hover, | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,8 +22,8 @@ | |
align-items: center; | ||
cursor: pointer; | ||
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; | ||
Comment on lines
24
to
+26
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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. |
||
transition-duration: 300ms; | ||
text-decoration-line: none; | ||
outline: none; | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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. |
There was a problem hiding this comment.
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.