fix(ui): Fix position of Checkbox indicator (#11075)
**What** - Fixes an issue that would cause the Checkbox indicator to get rendered outside of view in the checkbox was wrapped in a relative div.
This commit is contained in:
committed by
GitHub
parent
c400719fcc
commit
7feb004600
5
.changeset/beige-steaks-clean.md
Normal file
5
.changeset/beige-steaks-clean.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@medusajs/ui": patch
|
||||
---
|
||||
|
||||
fix(ui): Fix position of Checkbox indicator
|
||||
@@ -36,7 +36,7 @@ const Checkbox = React.forwardRef<
|
||||
"group-data-[state=indeterminate]:bg-ui-bg-interactive group-data-[state=indeterminate]:shadow-borders-interactive-with-shadow"
|
||||
)}
|
||||
>
|
||||
<Primitives.Indicator className="absolute inset-0 flex items-center justify-center">
|
||||
<Primitives.Indicator>
|
||||
{checked === "indeterminate" ? <MinusMini /> : <CheckMini />}
|
||||
</Primitives.Indicator>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user