Skip to content

Commit 6223cbf

Browse files
committed
fix(sistent): stop page-wide path stroke from outlining icons in Working with Icons preview
SistentWrapper strokes every SVG path on the page. FavoriteIcon includes an unfilled M0 0h24v24H0z bounding path, so the rule drew a teal box around the heart in the preview. Scope a stroke: none override to the Working with Icons preview only, leaving other Sistent pages unchanged. Signed-off-by: Sameer Kumar <sameerkr.dev@gmail.com>
1 parent 0ab60ae commit 6223cbf

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

‎src/sections/Projects/Sistent/getting-started/usage/index.js‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -626,6 +626,7 @@ const SistentUsage = () => {
626626
initialMode={isDark ? "dark" : "light"}
627627
>
628628
<div
629+
className="icon-showcase"
629630
style={{
630631
display: "flex",
631632
gap: "12px",

‎src/sections/Projects/Sistent/sistent.style.js‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,9 @@ const SistentWrapper = styled.div`
242242
stroke: ${(props) => props.theme.green00D3A9ToGreen00B39F};
243243
transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
244244
}
245+
.icon-showcase path {
246+
stroke: none;
247+
}
245248
svg {
246249
color: "red";
247250
}

0 commit comments

Comments
 (0)