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): remove autoapplied gray borders from sketch package #7429

Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions packages/sketch/src/commands/icons/shared.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,6 @@ function createSVGArtboards(
});
}

shape.style.borders = [];

for (const layer of transparent) {
layer.remove();
}
Expand Down
4 changes: 3 additions & 1 deletion packages/sketch/src/tools/sharedStyles.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,14 @@ export function syncSharedStyle(

// If none exists, we can create one from scratch
if (!sharedStyle) {
return SharedStyle.fromStyle({
const generatedSharedStyle = SharedStyle.fromStyle({
name,
style,
styleType,
document,
});
generatedSharedStyle.style.borders = [];
return generatedSharedStyle;
}

// Otherwise, we'll go and update values of the sharedStyle with the given
Expand Down