Please refer to this demo of input fields in angular material design. My problem is that while most fields like input passwords have "floating" labels the date input does not show anything, especially when the placeholder is hidden (because the date is pre-filled).
This makes the form very confusing, since there is no prompt on what the date dropdown represents on the form (and what the user is supposed to do).
How can I add a floating label similar to input fields to the md-datepicker? To make the form filling more obvious and also give my forms a consistent look?
Okay, after a bit of messing around with css, I finally figured out the following solution:
CSS:
HTML:
You should use an input container: