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

docs(react): always set href for button even when it's empty string #609

Merged
merged 1 commit into from
Apr 23, 2021

Conversation

josokinas
Copy link
Contributor

Purpose

After #576 no longer need to set "href" prop on React story only when it's not empty, component will not render as <a> now if href is set empty.

Approach

Pass all props to Button component.

Testing

On Storybook, React story for Button component should render as <button> when "href" prop is empty.

Risks

N/A

@josokinas josokinas requested a review from rabelloo April 23, 2021 12:37
@josokinas josokinas self-assigned this Apr 23, 2021
@github-actions
Copy link
Contributor

github-actions bot commented Apr 23, 2021

🎊 PR Preview 216bc61 has been successfully built and deployed to https://onfido-castor-preview-pr-609.surge.sh

🕐 Build time: 143.978s

🤖 By surge-preview

@josokinas josokinas merged commit d3a84ae into main Apr 23, 2021
@josokinas josokinas deleted the docs/button-href-optional branch April 23, 2021 14:40
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