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:
Kasper Fabricius Kristensen
2025-01-22 12:08:32 +01:00
committed by GitHub
parent c400719fcc
commit 7feb004600
2 changed files with 6 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
---
"@medusajs/ui": patch
---
fix(ui): Fix position of Checkbox indicator

View File

@@ -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>