Skip to content

Commit

Permalink
spread props, text should be centered
Browse files Browse the repository at this point in the history
  • Loading branch information
jakewheeler committed Nov 7, 2024
1 parent fe63f3f commit 769bbe9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/app/components/LinkButton/LinkButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,14 @@ export function LinkButton({
variant,
href,
disabled = false,
...props
}: LinkButtonProps) {
if (variant === 'secondary') {
return (
<Link
href={href}
className="usa-button hover:bg-red items-center justify-start gap-2.5 rounded border-2 border-[#224a58] bg-white px-5 py-3 hover:border-2"
{...props}
>
<span className="text-center text-base font-bold leading-none text-[#224a58]">
{children}
Expand All @@ -32,8 +34,9 @@ export function LinkButton({
<Link
href={href}
className="usa-button hover:bg-green self-end justify-self-start bg-[#224a58]"
{...props}
>
<span className="text-right text-base font-bold text-white">
<span className="text-center text-base font-bold text-white">
{children}
</span>
</Link>
Expand Down

0 comments on commit 769bbe9

Please sign in to comment.