-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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(input): Fix floating label width #689
Changes from 3 commits
12d1838
d3bb9f6
1eca960
5d34583
e2deb54
a60b3e2
8c20c1a
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 |
---|---|---|
|
@@ -34,7 +34,9 @@ $md-input-underline-disabled-background-image: linear-gradient(to right, | |
visibility: visible; | ||
padding-bottom: 5px; | ||
transform: translateY(-100%) scale(0.75); | ||
|
||
transition: width 150ms ease-in-out; | ||
width: 133%; // 100/75 of the original space now available | ||
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. Instead of magic number, please use a scale constant and make the width Also please transition the width as well. 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. It is not a magic number. It is just 100% / placeholderScaleFactor. 100/75=1.33 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. What I'm saying is that this is a good time to move the Also, if we change the |
||
|
||
.md-placeholder-required { | ||
color: $md-input-required-placeholder-color; | ||
} | ||
|
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.
So this will overwrite or be overwritten by the transition already on the
.md-input-placeholder
. The transition should be added to line 125 AND use material transition functions.