From 0bf7dbd6e5b8bd115cdeec9f5f35179951387a22 Mon Sep 17 00:00:00 2001 From: Lone Iversen <108085781+loivsen@users.noreply.github.com> Date: Fri, 7 Jun 2024 10:38:26 +0200 Subject: [PATCH 1/2] Hides the boolean input for firefox --- packages/uui-boolean-input/lib/uui-boolean-input.element.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/uui-boolean-input/lib/uui-boolean-input.element.ts b/packages/uui-boolean-input/lib/uui-boolean-input.element.ts index 80e5124e4..a69badaba 100644 --- a/packages/uui-boolean-input/lib/uui-boolean-input.element.ts +++ b/packages/uui-boolean-input/lib/uui-boolean-input.element.ts @@ -193,6 +193,7 @@ export abstract class UUIBooleanInputElement extends UUIFormControlMixin( } label { + position: relative; cursor: pointer; user-select: none; @@ -207,7 +208,7 @@ export abstract class UUIBooleanInputElement extends UUIFormControlMixin( position: absolute; height: 0px; width: 0px; - margin-top: -4px; + visibility: hidden; } :host([label-position='left']) label { From 73db5de1e873d85271c46f14aea75bc48876ecbb Mon Sep 17 00:00:00 2001 From: Lone Iversen <108085781+loivsen@users.noreply.github.com> Date: Fri, 7 Jun 2024 11:04:25 +0200 Subject: [PATCH 2/2] opacity --- packages/uui-boolean-input/lib/uui-boolean-input.element.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/uui-boolean-input/lib/uui-boolean-input.element.ts b/packages/uui-boolean-input/lib/uui-boolean-input.element.ts index a69badaba..4d14dec64 100644 --- a/packages/uui-boolean-input/lib/uui-boolean-input.element.ts +++ b/packages/uui-boolean-input/lib/uui-boolean-input.element.ts @@ -208,7 +208,7 @@ export abstract class UUIBooleanInputElement extends UUIFormControlMixin( position: absolute; height: 0px; width: 0px; - visibility: hidden; + opacity: 0; } :host([label-position='left']) label {