From 911f9ada978f2d8b053181bae529fb4ca287792b Mon Sep 17 00:00:00 2001 From: Werner Scheffer Date: Thu, 18 Apr 2024 10:35:22 +0200 Subject: [PATCH] Revert "Changed label background top position" This reverts commit ee5fe5d7aba331f346b1e836706bb906e257612b. --- src/core/OmniFormElement.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/OmniFormElement.ts b/src/core/OmniFormElement.ts index 0ca9e4fd..2d6dbc3f 100644 --- a/src/core/OmniFormElement.ts +++ b/src/core/OmniFormElement.ts @@ -215,7 +215,7 @@ export class OmniFormElement extends OmniElement { line-height: 100%; /* Used to position the label in the middle of the y-axis*/ - top:50%; + top: 50%; transform: translateY(-50%); margin-left: var(--omni-form-label-margin-left, 10px); @@ -270,7 +270,7 @@ export class OmniFormElement extends OmniElement { right: calc(var(--omni-form-focussed-label-padding-right, 3px) * -1); height: 50%; z-index: -1; - top: 48%; + top: 50%; width: calc(100% + var(--omni-form-focussed-label-padding-left, 3px) + var(--omni-form-focussed-label-padding-right, 3px)); }