fix(ui): use pointer cursor on interactive controls and not-allowed when disabled

This commit is contained in:
2026-06-23 23:14:32 +05:30
parent 5e4cf61d6e
commit dfb95c5213
9 changed files with 23 additions and 20 deletions

View File

@@ -75,7 +75,7 @@ function SheetContent({
>
{children}
{showCloseButton && (
<SheetPrimitive.Close className="absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:outline-hidden disabled:pointer-events-none data-[state=open]:bg-secondary">
<SheetPrimitive.Close className="absolute top-4 right-4 cursor-pointer rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:outline-hidden disabled:cursor-not-allowed disabled:opacity-50 data-[state=open]:bg-secondary">
<XIcon className="size-4" />
<span className="sr-only">Close</span>
</SheetPrimitive.Close>