Skip to content

Commit

Permalink
update button link styling
Browse files Browse the repository at this point in the history
  • Loading branch information
evansloan committed Jul 30, 2023
1 parent f15c5a2 commit 70a1f5b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/elements/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const Button = (props: ButtonProps) => {
// Wrap the button in an anchor if we should be redirecting outwards
if (props.externalLink) {
buttonContent = (
<a href={props.externalLink}>
<a href={props.externalLink} className='no-underline text-white'>
{buttonContent}
</a>
);
Expand Down
2 changes: 2 additions & 0 deletions src/components/elements/__snapshots__/Button.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ exports[`Button component should render with external link "https://example.com"
className="p-2 btn-standard border-black border-2 text-white text-shadow "
>
<a
className="no-underline text-white"
href="https://example.com"
>
<div
Expand All @@ -21,6 +22,7 @@ exports[`Button component should render with external link "https://runelite.net
className="p-2 btn-standard border-black border-2 text-white text-shadow "
>
<a
className="no-underline text-white"
href="https://runelite.net/"
>
<div
Expand Down

0 comments on commit 70a1f5b

Please sign in to comment.