tailwindcss-custom-forms icon indicating copy to clipboard operation
tailwindcss-custom-forms copied to clipboard

Safari Datepicker (iOS) doesn't style correctly

Open pastorryanhayden opened this issue 6 years ago • 3 comments

On IOS, this is what a date field styled with .form-input looks:

IMG_0771

This is what the markup looks like:

             <label class="block mb-6 mr-6">
                    <span class="text-gray-700">{{ __('Date') }}:</span>
                    <input type="date" class="form-input mt-1 block w-64" name="date" placeholder="yyyy-mm-dd">
                </label>

It renders as expected on all other browsers.

pastorryanhayden avatar Oct 31 '19 12:10 pastorryanhayden

Right now the form-input class is designed for regular text inputs and we don't have any classes meant for input[type="date"], so your best bet for now is to style elements like that by hand.

Will leave this open though as it would be good to provide default date input styles in the future.

adamwathan avatar Oct 31 '19 12:10 adamwathan

Makes sense. Thanks.

pastorryanhayden avatar Oct 31 '19 12:10 pastorryanhayden

Even without being on IOS this also happens on other Browsers and operative systems, we might want to change the title of the issue to "Input type date doesn't style correctly"

Or merge it with #22

image

gnuget avatar Aug 06 '21 15:08 gnuget