From 5da6968996df92ece30b7087775178a100bf8ed5 Mon Sep 17 00:00:00 2001 From: Adam Wathan Date: Fri, 8 Nov 2024 16:43:56 -0500 Subject: [PATCH] Normalize date/time input styles (#14931) This PR adds some additional styles to Preflight to normalize a bunch of inconsistencies in date/time inputs across browsers. The main motivation for this is to remove these insane classes we have to add in Catalyst: ```html ``` With these normalizations, changing things like padding, display type, etc. gives consistent results (at least as consistent as is actually possible) across all browsers. --- **Make text alignment work on iOS Safari** iOS Safari text alignment --- **Don't shrink date inputs on iOS Safari when there is no selected value** ioS Safari no input --- **Fix padding in macOS Safari** MacOS Safari --------- Co-authored-by: Adam Wathan <4323180+adamwathan@users.noreply.github.com> --- CHANGELOG.md | 1 + .../src/__snapshots__/index.test.ts.snap | 49 +++++++++++++++++++ packages/tailwindcss/preflight.css | 32 ++++++++++++ 3 files changed, 82 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 56a3c9f2d..e1240739a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Add `svh`, `dvh`, `svw`, `dvw`, and `auto` values to all width/height/size utilities ([#14857](https://github.com/tailwindlabs/tailwindcss/pull/14857)) - Add new `**` variant ([#14903](https://github.com/tailwindlabs/tailwindcss/pull/14903)) - Process `