Skip to content

Commit

Permalink
fix(button): add missing href
Browse files Browse the repository at this point in the history
  • Loading branch information
reme3d2y committed Apr 24, 2020
1 parent 69624f9 commit 756d84b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/button/src/Component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export const Button = React.forwardRef<HTMLAnchorElement & HTMLButtonElement, Bu

if (href) {
return (
<a {...componentProps} {...restProps} ref={ref}>
<a {...componentProps} {...restProps} href={href} ref={ref}>
{buttonChildren}
</a>
);
Expand Down
2 changes: 2 additions & 0 deletions packages/button/src/__snapshots__/Component.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,14 @@ Object {
<div>
<a
class="component secondary m iconOnly"
href="https://some-url"
/>
</div>
</body>,
"container": <div>
<a
class="component secondary m iconOnly"
href="https://some-url"
/>
</div>,
"debug": [Function],
Expand Down

0 comments on commit 756d84b

Please sign in to comment.