mirror of
https://github.com/mdbootstrap/mdb-ui-kit.git
synced 2025-04-19 08:32:08 +03:00
Fix input type DATE bug, for issue #1377
Input type text overwrite label text, making incorrect layout. Add input type DATE to docs.
This commit is contained in:
parent
4c3921fed5
commit
e51309d5ea
|
@ -43,6 +43,10 @@ Form controls flavored by Material Design for Bootstrap customizations such as `
|
|||
<option>5</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="exampleFormControlDateType1">Example date</label>
|
||||
<input type="date" class="form-control" id="exampleFormControlDateType1">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="exampleTextarea" class="bmd-label-floating">Example textarea</label>
|
||||
<textarea class="form-control" id="exampleTextarea" rows="3"></textarea>
|
||||
|
|
|
@ -227,3 +227,18 @@ select {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Fix input type data
|
||||
// Type text overwriting label-floating, making it's layout incorrect
|
||||
input[type="date"]::-webkit-datetime-edit {
|
||||
color: transparent;
|
||||
}
|
||||
input[type="date"]:focus::-webkit-datetime-edit {
|
||||
color: black !important;
|
||||
}
|
||||
.is-filled {
|
||||
input[type="date"]::-webkit-datetime-edit {
|
||||
color: black !important;
|
||||
}
|
||||
}
|
||||
//-------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in New Issue
Block a user