Floating label support for md-chips
Hi, How to integrate floating label for md-chips. Styles are collapsing when doing so
+1
Agreed. Pretty much every component should support floating labels, as I've almost never seen a desktop web application that just has a single form field living on it's own.
+1
+1
+1
+1
+1
+1. it should be same as the other input components
+1
+1
+1
+1
If you include md-autocomplete in your chips, you can add the md-floating-label to that, but it requires a few CSS tweaks to get it to line up properly. Something like:
md-chips.with-floating-label{
margin: 18px 0;
display: block;
}
md-chips.with-floating-label md-chips-wrap{
padding-left: 0px;
padding-bottom: 0px;
}
md-chips.with-floating-label md-autocomplete[md-floating-label] md-input-container{
margin-top: 0px;
}
md-chips.with-floating-label .md-chip-input-container:not(:first-child){
margin-top: 28px;
}
HI,
Can we update the milestone for this?
@alphatwit Can you please provide codepen for your workaround, I tried this but floating label were started after added chips.
It's not the most attractive solution, and it does put the floating label after the chips unfortunately. http://codepen.io/anon/pen/VvoGBa
There's no obvious way to add a floating label to it without something looking weird. if it floats up above the chips, it might end up five miles up the screen, depending on how many chips you have. On the other hand if you leave it above the input box and you have a full row of chips, the input will be positioned a little too far from the rest of the chips in order to make room for the floating label.
+1
+1
+1
+1
+1