Inside my Polymer project I am trying to build a advanced search that let's a user pick a date. I created a paper-input with a type of date.
Obviously the date picker is not using material design, however when I am trying to style it nothing happens.
I am using these 8 pseudo-elements that are available by WebKit for customizing a date input’s textbox. 8 pseudo-elements
Below are the two ways listed I tried. I might do something wrong or is the webkit just not supported in Polymer.
<link rel="import" href="../../bower_components/polymer/polymer.html">
<link rel="import" href="../../bower_components/webcomponentsjs/webcomponents-lite.min.js">
<link rel="import" href="../../bower_components/paper-input/paper-input.html">
<dom-module id="my-datepicker">
<template>
<style>
:host {
display: block;
}
paper-input ::content input::-webkit-datetime-edit-month-field{
color: blue;
}
paper-input ::content input::-webkit-inner-spin-button {
display: none;
}
</style>
<style>
paper-input ::content input::-webkit-datetime-edit-month-field{
color: blue;
}
paper-input ::content input::-webkit-inner-spin-button {
display: none;
}
</style>
<!-- Paper Input with date Picker -->
<paper-input label="Search a Date of Birth" type="date" always-Float-Label></paper-input>
</template>
<script>
Polymer({
is: 'my-datepicker',
properties: {
},
});
</script>
</dom-module>