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

fix(sketch): resolve sketch plugin color layer style duplication #7762

Conversation

emyarod
Copy link
Member

@emyarod emyarod commented Feb 8, 2021

Closes #7734

related #5664 #5692 #5744

This PR resolves the color layer style duplication issue. Since we have changed direction in how we expect shared styles to be named, we can undo some changes initially introduced in #5744 to address #5692. We also add some logic to check for the breaking change in #5664 and rename the style layers in place

Changelog

Changed

  • remove style type from style name
  • use param objects instead of lists of params
  • rename formatSharedStyleName to be more descriptive

Removed

  • Color style "type" references

Testing / Reviewing

color style names should no longer contain style type, and any references to color style type should no longer be in the plugin codebase

image

image

carbon-elements.sketchplugin.zip

@netlify
Copy link

netlify bot commented Feb 8, 2021

Deploy preview for carbon-elements ready!

Built with commit e774911

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

@netlify
Copy link

netlify bot commented Feb 8, 2021

Deploy preview for carbon-components-react ready!

Built without sensitive environment variables with commit e774911

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

Copy link
Contributor

@andreancardona andreancardona left a comment

Choose a reason for hiding this comment

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

🎉

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.

After syncing the plugin with the icon sketch file, the new color palette structure is coming through and is being used by the icons, but the old color structure also remains which causes a duplication of the same colors.

Example:
Screen Shot 2021-02-09 at 3 54 02 PM
Screen Shot 2021-02-09 at 4 04 21 PM

@emyarod emyarod force-pushed the 7734-resolve-sketch-plugin-color-layer-style-duplication branch 2 times, most recently from 381d201 to 7d3da2d Compare February 11, 2021 18:53
@emyarod
Copy link
Member Author

emyarod commented Feb 11, 2021

here is the updated plugin which should rename layers in place. the layers should now have the correct name format and no duplicate layers will be generated

carbon-elements.sketchplugin.zip

@emyarod emyarod force-pushed the 7734-resolve-sketch-plugin-color-layer-style-duplication branch from 7d3da2d to 891bf9a Compare February 11, 2021 19:13
@emyarod emyarod force-pushed the 7734-resolve-sketch-plugin-color-layer-style-duplication branch from 891bf9a to c369682 Compare February 11, 2021 20:46
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.

I see the correct color styles and they are maintaining overrides when I tested it 🎉

@kodiakhq kodiakhq bot merged commit 3d1c3e6 into carbon-design-system:master Feb 12, 2021
@emyarod emyarod deleted the 7734-resolve-sketch-plugin-color-layer-style-duplication branch February 19, 2021 17:28
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.

[icons] color layer style duplication
4 participants