Skip to content

Commit

Permalink
Merge pull request #1362 from JamesLaverack/button-rel-attribute
Browse files Browse the repository at this point in the history
Respect rel attributes on <Button>
  • Loading branch information
jetstack-bot authored Apr 12, 2024
2 parents 574fcac + 2a195fc commit 8250065
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/Button.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export default function Button({
caption,
href,
className = '',
rel = null,
target
}) {
const styles = classNames({
Expand All @@ -19,6 +20,7 @@ export default function Button({
(<Link
href={href}
target={target || '_self'}
rel={rel}
className={`font-montserrat font-bold uppercase text-sm leading-20px btn-primary rounded-5px ${styles} ${className}`}>

<span className={"block " + iconWClass}>{icon && <Icon name={icon} />}</span>
Expand Down

0 comments on commit 8250065

Please sign in to comment.