Skip to content

Commit

Permalink
fix: proper loading icon for icon button
Browse files Browse the repository at this point in the history
  • Loading branch information
nahoc committed Oct 28, 2024
1 parent ef45575 commit 1732cea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ const Button = forwardRef<HTMLButtonElement, ButtonProps>(
<div
data-testid="loader-icon"
aria-hidden={!isLoading}
className={cn(!startIcon && "transition-all", iconVariants({ size }), "mr-2", !isLoading && "mr-0 max-w-0")}
className={cn(!startIcon && "transition-all", "mr-2", iconVariants({ size }), !isLoading && "mr-0 max-w-0")}
>
{isLoading && <Loader2Icon className={cn(iconVariants({ size }), "animate-spin")} />}
</div>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@risc0/ui",
"version": "0.0.196",
"version": "0.0.197",
"private": false,
"sideEffects": false,
"type": "module",
Expand Down

0 comments on commit 1732cea

Please sign in to comment.