File tree 2 files changed +14
-1
lines changed
2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
8
8
## [ Unreleased]
9
9
10
- - Nothing yet!
10
+ ### Fixed
11
+
12
+ - Fix date time bottom spacing on MacOS Safari ([ #146 ] ( https://github.com/tailwindlabs/tailwindcss-forms/pull/146 ) )
11
13
12
14
## [ 0.5.5] - 2023-08-22
13
15
Original file line number Diff line number Diff line change @@ -106,6 +106,17 @@ const forms = plugin.withOptions(function (options = { strategy: undefined }) {
106
106
'text-align' : 'inherit' ,
107
107
} ,
108
108
} ,
109
+ {
110
+ // In Safari on macOS date time inputs that are set to `display: block` have unexpected
111
+ // extra bottom spacing. This can be corrected by setting the `::-webkit-datetime-edit`
112
+ // pseudo-element to `display: inline-flex`, instead of the browser default of
113
+ // `display: inline-block`.
114
+ base : [ '::-webkit-datetime-edit' ] ,
115
+ class : [ '.form-input::-webkit-datetime-edit' ] ,
116
+ styles : {
117
+ display : 'inline-flex' ,
118
+ } ,
119
+ } ,
109
120
{
110
121
// In Safari on macOS date time inputs are 4px taller than normal inputs
111
122
// This is because there is extra padding on the datetime-edit and datetime-edit-{part}-field pseudo elements
You can’t perform that action at this time.
0 commit comments