I am using MDL - getmdl.io version 1.3.0
I am having a problem getting the date form field to do what I want. instead of only showing the label field, it is showing the placeholder from the default <input type="date">
.
I ideally don't want to show this. But if I have to, how can I put the label next to the form field?
code
<div class="mdl-textfield mdl-js-textfield mdl-textfield--floating-label mdl-cell mdl-cell--6-col">
<input class="mdl-textfield__input" type="date" id="date">
<label class="mdl-textfield__label" for="date">Date</label>
</div>
My CSS attempt to hide the default placeholder.
::-webkit-datetime-edit-year-field:not([aria-valuenow]),
::-webkit-datetime-edit-month-field:not([aria-valuenow]),
::-webkit-datetime-edit-day-field:not([aria-valuenow]),
::-webkit-datetime-edit-text {
color: transparent;
}