From 348c3f87430199a4ab92bc2e5bd2aad88e95f942 Mon Sep 17 00:00:00 2001 From: Marco Ambrosini Date: Wed, 3 Jul 2024 11:08:51 +0200 Subject: [PATCH] Fix input field label alignment Signed-off-by: Marco Ambrosini --- src/components/NcInputField/NcInputField.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/NcInputField/NcInputField.vue b/src/components/NcInputField/NcInputField.vue index dcc61343fb..2c396948ff 100644 --- a/src/components/NcInputField/NcInputField.vue +++ b/src/components/NcInputField/NcInputField.vue @@ -430,7 +430,7 @@ export default { position: absolute; margin-inline: 14px 0; max-width: fit-content; - inset-block-start: 11px; + inset-block-start: calc((var(--default-clickable-area) - var(--default-line-height)) / 2); // center the label vertically inset-inline: 0; // Fix color so that users do not think the input already has content color: var(--color-text-maxcontrast);