In Chrome when you type="time"
property to an input box you get a little icon clock icon next to the input. Is there a way of removing this little clock icon?
Asked
Active
Viewed 3.3k times
23

beakersoft
- 2,316
- 6
- 30
- 40
-
I'm not seeing this. Can you screenshot what you mean? – John May 21 '20 at 12:11
1 Answers
65
Based on the answers to this question: Change date input triangle to a calendar icon
We can see that we need to override the -webkit-calendar-picker-indicator pseudo-element, for example:
input[type="time"]::-webkit-calendar-picker-indicator {
background: none;
}
Here it is in Chrome by default
Here it is with -webkit-calendar-picker-indicator background none
Of course you're hiding the fact there is a clickable picker so you may well want to think again about how you're displaying this if it's read only or do some more styling.
And to pull in Eiriks useful contribution from below, to remove the space completely add:
display:none;

Andrew
- 1,006
- 10
- 17
-
17`input[type="time"]::-webkit-calendar-picker-indicator { background: none; display:none; }` removes the space too. – Eiriks Oct 16 '20 at 11:35
-
3For input date => `input[type="date"]::-webkit-calendar-picker-indicator` – mehmet May 06 '22 at 12:35