Skip to content

fix(ui): center the calendar icon in date inputs

artur requested to merge release/fix-calendar into main

uikit 1.0.57 centres the Input end icon with -translate-y-2/5, and tailwind-merge drops the -translate-y-1/2 in front of it. barincore's Tailwind build never scans uikit, so that class is missing in the core: the wrapper got no translate at all, and every calendar (DatePicker, DatePickerInput, MonthDatePicker) and the search icon hung ~10px below the middle of the field. Standalone was ~2px off as well.

The scoped rule centres the wrapper itself and collapses it to the icon height. It becomes a no-op after the move to uikit 1.1.x, which centres the icon on its own.

Merge request reports

Loading