Skip to content

Instantly share code, notes, and snippets.

@chriswitko
Forked from mohammad-ahid/style.css
Created November 13, 2023 08:51
Show Gist options
  • Save chriswitko/b3eab983cad54a7230c2a5a017cff482 to your computer and use it in GitHub Desktop.
Save chriswitko/b3eab983cad54a7230c2a5a017cff482 to your computer and use it in GitHub Desktop.
CSS hack to hide Chrome default date picker styles
// @see http://stackoverflow.com/questions/11320615/disable-browser-native-datepicker
input::-webkit-calendar-picker-indicator{
display: none;
}
input[type="date"]::-webkit-input-placeholder{
visibility: hidden !important;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment