Is it possible to add a very marked css class such as a black background to the days that cannot be selected in the calendar (min="current day")? As you can see in the image, the days that cannot be selected have a very gray color. Clearly, users with visual impairment have access to that page.
<input type="date" name="fechaInicio" id="fechaInicio"
min="2019-01-15" max="2020-01-01" class="readonly">
<script>
$(".readonly").keydown(function(e){
e.preventDefault();
});
</script>
As far as I know you can't change the style of the calendar ( link ):
What can be changed is the appearance of the input with pseudo classes
webkit
but I think that you are not interested. Here is an example obtained from this codepen :Basically it is NOT possible at this moment to change the styles of the datepicker, being an implementation dependent on the technology of each browser, each one of these would need its own way of styling (there is something for Chrome, Vivaldi and Opera but it only affects the field and not the date picker).
There is more information about it on MDN: https://developer.mozilla.org/es/docs/Web/HTML/Elemento/input/date
As for Chrome, the Developers blog explains that there is no way (for now) to change the style of the datepicker:
The part that interests us is the one in bold in the paragraph (approximate translation):
Said information is updated until January 14, 2019.
More information (in English) at the following link: https://developers.google.com/web/updates/2012/08/Quick-FAQs-on-input-type-date-in-Google-Chrome
I was able to change the color of the icon that goes inside the input type date ; in my case I just wanted to change it to white color because the background was dark.
}