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

Use render-component to align component interfaces with React implementations #143

Merged
merged 4 commits into from
Jun 26, 2018

Conversation

andrewpye
Copy link
Member

Our implementations of polaris-checkbox and polaris-description-list had previously had separate label/labelComponent properties etc. which was out of alignment with the React implementations and a nuisance for developers to remember. With this PR, the following become deprecated:

  • labelComponent for polaris-checkbox;
  • termComponent and descriptionComponent for polaris-description-list#items.

Instead, the components can now be simply passed as label, term and description respectively.

@andrewpye andrewpye self-assigned this Jun 26, 2018
@andrewpye andrewpye requested review from vladucu and tomnez June 26, 2018 12:40
@andrewpye
Copy link
Member Author

Copy link
Member

@vladucu vladucu left a comment

Choose a reason for hiding this comment

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

changes look good to me!

@andrewpye andrewpye merged commit 094b849 into master Jun 26, 2018
@andrewpye andrewpye deleted the enhancement/deprecate-explicit-component-properties branch June 26, 2018 15:13
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.

None yet

2 participants