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

refactor(sharedStyles): use param object instead of list of params #8700

Merged
merged 2 commits into from
May 19, 2021

Conversation

emyarod
Copy link
Member

@emyarod emyarod commented May 17, 2021

This PR adds in the refactoring from #8188 while it remains blocked. The syncColorStyle function now uses a param object instead of a list of params. This helped with linting by triggering warnings with unused params while refactoring. It will also help in case new params need to be added in the future, since the order of the function params will be unimportant within the config object.

Testing / Reviewing

Confirm there are no regressions with the current plugin behavior since this change is 100% organizational

carbon-elements.sketchplugin.zip

@netlify
Copy link

netlify bot commented May 17, 2021

Deploy Preview for carbon-elements ready!

Built with commit a426eec

https://deploy-preview-8700--carbon-elements.netlify.app

@netlify
Copy link

netlify bot commented May 17, 2021

Deploy Preview for carbon-components-react ready!

Built with commit a426eec

https://deploy-preview-8700--carbon-components-react.netlify.app

Copy link
Member

@laurenmrice laurenmrice left a comment

Choose a reason for hiding this comment

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

Looks good! No regressions

@kodiakhq kodiakhq bot merged commit c3d7d36 into carbon-design-system:main May 19, 2021
@emyarod emyarod deleted the refactor-synccolorstyle branch May 19, 2021 21:32
@emyarod emyarod mentioned this pull request Jun 1, 2021
87 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants