-
Notifications
You must be signed in to change notification settings - Fork 142
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
fix(Decorator): breakout single Decorator into many smaller Decorators #4542
fix(Decorator): breakout single Decorator into many smaller Decorators #4542
Conversation
✅ Deploy Preview for carbon-for-ibm-products ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this looks great!
just one tiny nitpick: to avoid unnecessary repetition you can remove all the defaults
in the variants and just use a single one in DecoratorBase
Great idea. Thanks for the details in the PMs 🎉 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
woot
3f57a24
Contributes to #4476
Issue
The single Decorator has complex and changing
prop
relationships depending in thekind
selected. This also requires complicated documentation to explain the different relationships.Solution
Create an internal DecoratorBase component, and build out sub components where their props are specific to each type.
Convert monolithic Decorator into smaller, more focused "sub types":
What did you change?
Too many files to list.
How did you test and verify your work?