Skip to content
This repository has been archived by the owner on Sep 11, 2021. It is now read-only.

Safari Datepicker (iOS) doesn't style correctly #43

Open
pastorryanhayden opened this issue Oct 31, 2019 · 3 comments
Open

Safari Datepicker (iOS) doesn't style correctly #43

pastorryanhayden opened this issue Oct 31, 2019 · 3 comments

Comments

@pastorryanhayden
Copy link

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.

@adamwathan
Copy link
Member

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.

@pastorryanhayden
Copy link
Author

Makes sense. Thanks.

@gnuget
Copy link

gnuget commented Aug 6, 2021

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants