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

feat(component): covert Fieldset to FC and remove static members #319

Merged
merged 4 commits into from
Jan 9, 2020

Conversation

chanceaclark
Copy link
Contributor

@chanceaclark chanceaclark commented Jan 9, 2020

What

  • Export Fieldset instead of it being a static member.
  • Refactor Fieldset component to be a functional component.
  • Export FieldsetLegend and FieldsetDescription.

warning.ts

We know throw an error in console during runtime type checking for the Fieldset legend and descirption props. This ensures the consumer of the component is using the right components when needing to use custom legend and descriptions's. The implementation of warning.ts is a slightly modified version of tiny-warning module.


BREAKING CHANGE:
Form.Fieldset renamed to Fieldset and will now have to
import { Fieldset } from '@bigcommerce/big-design';

@chanceaclark chanceaclark requested a review from a team January 9, 2020 19:09
@deini
Copy link
Member

deini commented Jan 9, 2020

Offline review 🕺

@chanceaclark chanceaclark merged commit f75bd49 into bigcommerce:master Jan 9, 2020
@chanceaclark chanceaclark deleted the refactor/fieldset branch January 9, 2020 21:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants