Allow for a placeholder when using floating labels #3546
DaviDevMod
started this conversation in
Ideas / feature requests
Replies: 2 comments 1 reply
-
I thought I was opening a new issue, the template mislead me 😆 |
Beta Was this translation helpful? Give feedback.
0 replies
-
How can we show both placeholder and the floating text at the same time when the placeholder text (inside the input) supposed to fly over the input? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
At the moment, floating labels ignore the
placeholder
attribute and use the text in the<span>
(the floating text) as placeholder.That means the text displayed as placeholder must be the same as the one labelling the input.
Usually that's also what you want, but not always, e.g.: you may want
"Email Address"
as label and"[email protected]"
as placeholder.It would be nice not to ignore the
placeholder
attribute.PS: I wasn't sure whether the transition between different texts would please my eyes, so I implemented the feature before opening this issue, to avoid asking for a feature I wouldn't even use. So if you don't mind I'm going to send a PR soon.
Beta Was this translation helpful? Give feedback.
All reactions