Closed reinink closed 1 year ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
tailwindcss-forms | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Aug 22, 2023 1:02am |
Casual thought, what about creating a pseudo selector so we could do something like date-time:text-right
if we wanted to?
Updated this to use inherit
instead of left
which means you can put a regular text-align
utility on the input itself 👍 Hat-tip to @thecrypticace for the suggestion!
Currently date and time inputs on iOS are centered:
This PR updates these inputs to be left-aligned so that they are consistent with the rest of the form inputs:
The implementation
Changing the text alignment on the input itself doesn't work on iOS. The only way to fix this is using the
-webkit-date-and-time-value
pseudo element:And while this totally works, it does come at the cost of users no longer being able to change the text alignment on date and time inputs using a utility class. However, they already couldn't on iOS, so this still feels like a good change.