Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ButtonLink component #581

Merged
merged 5 commits into from
Apr 6, 2020
Merged

Add ButtonLink component #581

merged 5 commits into from
Apr 6, 2020

Conversation

markdalgleish
Copy link
Member

@markdalgleish markdalgleish commented Apr 6, 2020

See changeset for details.

Also made the following changes:

  • Refactored Button so it leverages ButtonRenderer to provide prop defaults.
  • Improved link tests across the board.
  • Ensured that all links in Playroom call event.preventDefault() in their default onClick implementations.
  • Upgraded the linkComponent implementation on the docs site so that links with href="#" call event.preventDefault() to prevent navigation/scroll reset side effects.

@markdalgleish markdalgleish requested a review from a team as a code owner April 6, 2020 02:15
@changeset-bot
Copy link

changeset-bot bot commented Apr 6, 2020

🦋 Changeset is good to go

Latest commit: 5b2c104

We got this.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Contributor

@mattcompiles mattcompiles left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great besides one nitpick.

@markdalgleish markdalgleish merged commit 973df18 into master Apr 6, 2020
@markdalgleish markdalgleish deleted the button-link branch April 6, 2020 04:27
@seek-oss-ci seek-oss-ci mentioned this pull request Apr 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants