Skip to content

Commit 4daaf94

Browse files
author
Kara Sowles Deloss
authored
Merge pull request #264 from The-Best-Codes/best/ui-tweaks-1
Add event button classname is not applied
2 parents 3c5a109 + a6dfca8 commit 4daaf94

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

components/button-link/ButtonLink.jsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
import Link from 'next/link'
22
import IconArrowRight from '../../public/icons/arrow-right'
3+
import clsx from 'clsx'
34

4-
const ButtonLink = ({ href, isExternal, children }) => {
5+
const ButtonLink = ({ href, isExternal, children, className }) => {
56
return (
67
<Link
78
href={href}
89
target={isExternal ? '_blank' : undefined}
910
rel={isExternal ? 'noreferrer' : undefined}
10-
className="button-link"
11+
className={clsx('button-link', className)}
1112
>
1213
{children} <IconArrowRight />
1314
</Link>

components/button-link/button-link.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
svg path {
2020
transition: fill 0.2s ease;
21+
fill: $white;
2122
}
2223

2324
&:hover svg path {
@@ -29,6 +30,7 @@
2930
background: $white;
3031
color: $purple;
3132
font-weight: 600;
33+
margin-top: spacing(1);
3234

3335
svg path {
3436
fill: $purple;

0 commit comments

Comments
 (0)