From cb82769f313f12bde3ae6ed6b0b01133c46c5058 Mon Sep 17 00:00:00 2001 From: Josep Piguillem Date: Tue, 13 Oct 2026 21:17:06 +0200 Subject: [PATCH] Release @pi/ui 0.0.5: center the dates of pi-date-range-field Its two inputs are not .mat-mdc-input-element, so the rule that fills the 48px box missed them and they sat at the top of the field. Co-Authored-By: Claude Opus 5.5 --- libs/ui/package.json | 2 +- .../ui/src/lib/styles/common/vendors/_mat-form-field.scss | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/libs/ui/package.json b/libs/ui/package.json index 090907b..47ba903 100644 --- a/libs/ui/package.json +++ b/libs/ui/package.json @@ -1,6 +1,6 @@ { "name": "@pi/ui", - "version": "0.0.4", + "version": "0.0.5", "description": "Librería de componentes Angular standalone (botones, campos con Signal Forms, cards, charts, drawer/hub/modal, theming vía tokens CSS...).", "license": "MIT", "generators": "./generators.json", diff --git a/libs/ui/src/lib/styles/common/vendors/_mat-form-field.scss b/libs/ui/src/lib/styles/common/vendors/_mat-form-field.scss index 555c697..75da741 100644 --- a/libs/ui/src/lib/styles/common/vendors/_mat-form-field.scss +++ b/libs/ui/src/lib/styles/common/vendors/_mat-form-field.scss @@ -114,6 +114,14 @@ } } + // `pi-date-range-field`: sus dos fechas no son `.mat-mdc-input-element`, + // así que la regla de arriba no las alcanza y se quedaban pegadas arriba + // de la caja. Ocupan toda su altura y se centran como un input normal. + .mat-date-range-input, + .mat-date-range-input-container { + height: 100%; + } + &.mdc-text-field--disabled { .mat-mdc-input-element, .mdc-notched-outline,