Skip to content

Commit 81c0a95

Browse files
authored
fix: Hide the native input for boolean elements in firefox (#808)
* Hides the boolean input for firefox * opacity
1 parent c2f993b commit 81c0a95

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/uui-boolean-input/lib/uui-boolean-input.element.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,7 @@ export abstract class UUIBooleanInputElement extends UUIFormControlMixin(
193193
}
194194
195195
label {
196+
position: relative;
196197
cursor: pointer;
197198
user-select: none;
198199
@@ -207,7 +208,7 @@ export abstract class UUIBooleanInputElement extends UUIFormControlMixin(
207208
position: absolute;
208209
height: 0px;
209210
width: 0px;
210-
margin-top: -4px;
211+
opacity: 0;
211212
}
212213
213214
:host([label-position='left']) label {

0 commit comments

Comments
 (0)