Skip to content

Commit

Permalink
docs(sketch): additional notes on syncIconSymbols
Browse files Browse the repository at this point in the history
  • Loading branch information
emyarod committed Apr 15, 2021
1 parent 989e8a0 commit c7c4212
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/sketch/src/commands/icons/shared.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ export function syncIconSymbols({
IDL_SKETCH_LIBRARY_METADATA,
});

// import shared color styles from IDL Sketch library
idlSketchLibrary
.getImportableLayerStyleReferencesForDocument(document)
.forEach((layerStyle) => {
Expand All @@ -113,6 +114,7 @@ export function syncIconSymbols({
}
});

// set default icon color shared style
const sharedStyle = [...document.sharedLayerStyles].find((sharedLayerStyle) =>
sharedLayerStyle?.name.endsWith('black')
);
Expand Down

0 comments on commit c7c4212

Please sign in to comment.