Closed notwaldorf closed 6 years ago
This also fixes #583. OMG! It's an issue-closing spree!
Yeah tests are the usual red but green locally; yay focus, yay blur.
@notwaldorf I teaching CSS more than 10 years but cant understand what relation between This PR file changed and #597 😕 😄 Thank you, by the way, Could you please little explain what happened exactly ?! (if you like)
@AliMD In #594 I added an overflow: hidden
to paper-input-container
which clipped the content (like you saw, and worse, if you had an error message it would get clipped halfway). I originally did that because when in RTL, when the label needed to float back down (because you deleted all the content), it overflowed on the left hand side. That however, can be fixed by positioning the label correctly (the overflow direction gets flipped in RTL), so you don't need the overflow:hidden
. Anyway, not a very scientific answer.
@notwaldorf Thank you but #597 not related to overflow, I change overflow in demo and problem not solved!
Fixes #597, fixes #593 again.
Previous PR on this topic #594 did a bad (I did the bad). It added
overflow:hidden
which actually cut off the input and made it look like this:This PR correctly fixes the original RTL problem (which was that the label-come-down-from-floating-to-not-floating animation overflowed in the container) by correctly setting the overflow direction (which is backwards, thanks @bicknellr for spotting that)
Not floated (ltr and rtl):
Floated:
And as a bonus does the thing that @azakus said we should do which is just use
:dir
errwhere because it works in 1.0 as well.It takes a village, fam.