Skip to content

Commit

Permalink
fix: transaction button styling
Browse files Browse the repository at this point in the history
  • Loading branch information
alessey committed Mar 4, 2025
1 parent 8156b88 commit 00f5bc7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/eight-books-give.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@coinbase/onchainkit": patch
---

Fix: Move `<TransactionButton/>` styling to configurable parent
7 changes: 3 additions & 4 deletions src/transaction/components/TransactionButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -144,19 +144,18 @@ export function TransactionButton({
pressable.primary,
border.radius,
'w-full rounded-xl',
'px-4 py-3 font-medium text-base text-white leading-6',
'px-4 py-3 font-medium leading-6',
isDisabled && pressable.disabled,
text.headline,
color.inverse,
className,
)}
onClick={handleSubmit}
type="button"
disabled={isDisabled}
data-testid="ockTransactionButton_Button"
>
<div className={cn(text.headline, color.inverse, 'flex justify-center')}>
{buttonContent}
</div>
{buttonContent}
</button>
);
}

0 comments on commit 00f5bc7

Please sign in to comment.