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

[Card] Add example for card with footer action + plain button #1705

Merged
merged 1 commit into from
Jun 21, 2019

Conversation

sharoonthomas
Copy link
Contributor

WHY are these changes introduced?

Fixes #562

WHAT is this pull request doing?

Adds an example of the card where custom buttons are added, similar to how they are used in some parts of Shopify. The example adds a secondary button and a plain button to the footer of the card.

Screenshot 2019-06-18 15 51 48

@ghost
Copy link

ghost commented Jun 18, 2019

👋 Thanks for opening your first pull request. A contributor should give feedback soon. If you haven’t already, please check out the contributing guidelines. You can also join #polaris on the Shopify Partners Slack.

@ghost ghost added the cla-needed Added by a bot. Contributor needs to sign the CLA Agreement. label Jun 18, 2019
@sharoonthomas
Copy link
Contributor Author

Signed CLA

@ghost ghost removed the cla-needed Added by a bot. Contributor needs to sign the CLA Agreement. label Jun 18, 2019
Copy link
Member

@chloerice chloerice left a comment

Choose a reason for hiding this comment

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

Thanks for your contribution @sharoonthomas! I've suggested a couple of changes to the content to make the "why" of the example clear. Otherwise, the code for the example is spot on and looks as expected!

@sharoonthomas
Copy link
Contributor Author

Thanks for the feedback @chloerice. Updated the PR with the changes you suggested.

@chloerice chloerice merged commit 88075ad into Shopify:master Jun 21, 2019
@ghost
Copy link

ghost commented Jun 21, 2019

🎉 Thanks for your contribution to Polaris React!

@dleroux dleroux temporarily deployed to production June 25, 2019 17:18 Inactive
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.

Example for card with footer actions with plain button
3 participants