Skip to content

Commit

Permalink
fix: transition (#1028)
Browse files Browse the repository at this point in the history
* fix: transition

* docs: update scoped variable

* fix: transition value

Co-authored-by: Maomao Meyer-Zhang <[email protected]>
  • Loading branch information
felix-ico and Maomao Meyer-Zhang authored May 4, 2022
1 parent 614f83d commit a36e97f
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 12 deletions.
2 changes: 1 addition & 1 deletion packages/components/src/components/modal/modal.css
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
--spacing-close-button: var(--telekom-spacing-unit-x2);
--radius-close-button: var(--telekom-radius-standard);
--transition-close-button: all var(--telekom-motion-duration-transition)
var(--telekom-motion-easing-standard);
cubic-bezier(var(--telekom-motion-easing-standard));
--box-shadow-close-button-focus: 0 0 0 var(--telekom-line-weight-highlight)
var(--telekom-color-functional-focus);
--color-close-button: var(--telekom-color-text-and-icon-standard);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ app-navigation-main-mobile {
--font-weight-child: var(--telekom-typography-font-weight-regular);

--transition: all var(--telekom-motion-duration-transition)
var(--telekom-motion-easing-standard);
cubic-bezier(var(--telekom-motion-easing-standard));
width: 100%;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ app-navigation-sector-mobile {
--font-weight: var(--telekom-typography-font-weight-bold);
--font-size: var(--telekom-typography-font-size-body);
--transition: all var(--telekom-motion-duration-transition)
var(--telekom-motion-easing-standard);
cubic-bezier(var(--telekom-motion-easing-standard));
--border-bottom-selected: 1px solid var(--telekom-color-primary-standard);
--color-selected: var(--telekom-color-text-and-icon-primary-standard);
width: 100%;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

scale-text-field {
--transition: all var(--telekom-motion-duration-transition)
var(--telekom-motion-easing-standard);
cubic-bezier(var(--telekom-motion-easing-standard));
--radius: var(--telekom-radius-standard);
--border: var(--telekom-spacing-unit-x025) solid
var(--telekom-color-ui-outlined-border-standard);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
--height-large: var(--telekom-spacing-unit-x12);
--radius: var(--telekom-radius-small);
--transition: all var(--telekom-motion-duration-transition)
var(--telekom-motion-easing-standard),
cubic-bezier(var(--telekom-motion-easing-standard)),
border-radius var(--telekom-motion-duration-instant);
--box-shadow-focus: inset 0 0 0 var(--telekom-line-weight-highlight)
var(--telekom-color-functional-focus);
Expand Down
8 changes: 6 additions & 2 deletions packages/components/src/components/tooltip/tooltip.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,15 @@
--max-width: 20rem;
--transition-delay-hide: var(--telekom-motion-duration-instant);
--transition-duration-hide: var(--telekom-motion-duration-immediate);
--transition-timing-function-hide: var(--telekom-motion-easing-standard);
--transition-timing-function-hide: cubic-bezier(
var(--telekom-motion-easing-standard)
);

/* tooltip show */
--transition-duration-show: var(--telekom-motion-duration-immediate);
--transition-timing-function-show: var(--telekom-motion-easing-standard);
--transition-timing-function-show: cubic-bezier(
var(--telekom-motion-easing-standard)
);
--z-index: var(--scl-z-index-70);

display: contents;
Expand Down
4 changes: 3 additions & 1 deletion packages/components/src/html/semantic-tokens.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@
background: var(--telekom-color-background-canvas);
transition: background;
transition-duration: var(--telekom-motion-duration-animation);
transition-timing-function: var(--telekom-motion-easing-standard);
transition-timing-function: cubic-bezier(
var(--telekom-motion-easing-standard)
);
}
</style>
</head>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,8 @@ export const Template = (args, context) => ({

--spacing-close-button: var(--telekom-spacing-unit-x2);
--radius-close-button: var(--telekom-radius-standard);
--transition-close-button: all var(--telekom-motion-duration-transition) var(
--telekom-motion-easing-standard
--transition-close-button: all var(--telekom-motion-duration-transition) cubic-bezier(
var(--telekom-motion-easing-standard)
);
--box-shadow-close-button-focus: 0 0 0 var(--telekom-line-weight-highlight) var(
--telekom-color-functional-focus
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ export const Template = (args, { argTypes }) => ({

```css
scale-text-field {
--transition: all var(--telekom-motion-duration-transition) var(
--telekom-motion-easing-standard
--transition: all var(--telekom-motion-duration-transition) cubic-bezier(var(
--telekom-motion-easing-standard)
);
--radius: var(--telekom-radius-standard);
--border: var(--telekom-spacing-unit-x025) solid var(
Expand Down

0 comments on commit a36e97f

Please sign in to comment.