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:
@@ -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"
|
"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 />}
|
{checked === "indeterminate" ? <MinusMini /> : <CheckMini />}
|
||||||
</Primitives.Indicator>
|
</Primitives.Indicator>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user