Does anyone know how to hide the calendar icon on a date field in Chrome?
<input type="date" />
When I look it up I find that I should use ::-webkit-calendar-picker-indicator
but that doesn't seem to do the trick.
Does anyone know how to hide the calendar icon on a date field in Chrome?
<input type="date" />
When I look it up I find that I should use ::-webkit-calendar-picker-indicator
but that doesn't seem to do the trick.
Try something like this
input[type="date"]::-webkit-inner-spin-button,
input[type="date"]::-webkit-calendar-picker-indicator {
display: none;
-webkit-appearance: none;
}
<input type="date" class="date-input">
input[type='date']::-webkit-calendar-picker-indicator {background:
transparent;
bottom: 0;
color: transparent;
cursor: pointer;
height: auto;
left: 0;
position: absolute;
right: 0;
top: 0;
width: auto;
}
Use below CSS to hide the calender sign from the calender icon from input.
input[type='date']::-webkit-calendar-picker-indicator {
background: transparent;
bottom: 0;
color: transparent;
cursor: pointer;
height: auto;
left: 0;
position: absolute;
right: 0;
top: 0;
width: auto;
}