Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

fix(floating-label): Update transition durations #2590

Merged
merged 5 commits into from
Apr 19, 2018

Conversation

kfranqueiro
Copy link
Contributor

@kfranqueiro kfranqueiro commented Apr 18, 2018

Fixes #2561.

Also fixes notched-outline transition durations to match, since both occur at the same time in outlined text fields.

BREAKING CHANGE: Removes the (undocumented) mdc-floating-label-transition function

BREAKING CHANGE: Removes the (undocumented) mdc-floating-label-transition function
@@ -53,11 +55,9 @@
.mdc-notched-outline__path {
Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure if you want to change it here or another PR, but line 50 needs to be updated: change opacity 100ms ease to use the new duration variable and standard curve timing.
Also include a transition for border-color for the transition on hover.

Copy link
Contributor

Choose a reason for hiding this comment

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

In the .mdc-notched-outline__idle selector (GitHub won't let me comment there)

Copy link
Contributor Author

@kfranqueiro kfranqueiro Apr 19, 2018

Choose a reason for hiding this comment

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

I hadn't touched this because I was suspecting it was intentionally set so that there isn't still visibly a line when the label text is moving into the gap.

100ms is significantly shorter than the other values of 180 / 260 elsewhere that I replaced, and is still shorter than the new value I'm replacing it with (150).

I can change it, but I'm not sure that changing the duration in particular is a good idea?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I updated the branch with all of the suggested changes. Given the brevity of the overall duration, this seems like it might actually be fine (and even if I slow it down in dev tools it still doesn't seem like the half-faded line and the text don't end up intersecting too badly).

As much as I'd like to avoid transitioning on non-compositable properties, adding border-color fixes another issue I'd noticed, so thanks for pointing that out.

@codecov-io
Copy link

codecov-io commented Apr 19, 2018

Codecov Report

Merging #2590 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #2590   +/-   ##
=======================================
  Coverage   98.68%   98.68%           
=======================================
  Files          98       98           
  Lines        4198     4198           
  Branches      533      533           
=======================================
  Hits         4143     4143           
  Misses         55       55

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6866b58...a259f3f. Read the comment docs.

Copy link
Contributor

@bonniezhou bonniezhou left a comment

Choose a reason for hiding this comment

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

LGTM

@kfranqueiro kfranqueiro merged commit 099738c into master Apr 19, 2018
@kfranqueiro kfranqueiro deleted the fix/floating-label-transition branch April 19, 2018 20:20
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.

Incorrect transition timing for floating label scale/translate
3 participants