Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Firefox Quantum (57) <input type="date"> UI Close/delete button Hide

Since updating firefox we now have small (x) buttons appearing in the input as part of firefox's UI controls.

Is there any way I can hide/remove these buttons using css?

You can see this on the firefox input date webpage on mozilla here: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/date

or view image here

like image 562
HKG Avatar asked Nov 23 '17 15:11

HKG


1 Answers

clip-path is a crude approach you can use that works:

input[type=date] {
  border: 0;
  clip-path: inset(0 17px 0 0);
  width: 120px
}

https://jsfiddle.net/21zwe8yu/

like image 59
kethinov Avatar answered Oct 13 '22 10:10

kethinov