Skip to content

Commit

Permalink
fix: Hide the native input for boolean elements in firefox (#808)
Browse files Browse the repository at this point in the history
* Hides the boolean input for firefox

* opacity
  • Loading branch information
loivsen authored and iOvergaard committed Jun 18, 2024
1 parent ebeab23 commit bc31088
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/uui-boolean-input/lib/uui-boolean-input.element.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ export abstract class UUIBooleanInputElement extends UUIFormControlMixin(
}
label {
position: relative;
cursor: pointer;
user-select: none;
Expand All @@ -207,7 +208,7 @@ export abstract class UUIBooleanInputElement extends UUIFormControlMixin(
position: absolute;
height: 0px;
width: 0px;
margin-top: -4px;
opacity: 0;
}
:host([label-position='left']) label {
Expand Down

0 comments on commit bc31088

Please sign in to comment.