You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: improve multi-color SVG handling and accessibility
- Add detection for paths with different colors
- Display warning when merging multi-colored SVGs
- Apply fill-rule='evenodd' by default to preserve overlapping paths
- Improve toast contrast for WCAG AAA compliance (warnings with dark text)
- Update FAQ with multi-colored SVG behavior explanation
- Update Schema.org structured data with new FAQ entry
Copy file name to clipboardExpand all lines: index.html
+14-2Lines changed: 14 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -84,7 +84,15 @@
84
84
"name": "Will merging paths change my SVG appearance?",
85
85
"acceptedAnswer": {
86
86
"@type": "Answer",
87
-
"text": "No, merging paths only combines the path data into a single element. The visual appearance remains exactly the same. However, if multiple paths have different fill or stroke colors, the merged path will inherit the fill or stroke color of the first path."
87
+
"text": "In most cases, no. The visual appearance remains the same when paths use the same colors. However, if your SVG uses multiple fill or stroke colors, see the question about multi-colored SVGs."
88
+
}
89
+
},
90
+
{
91
+
"@type": "Question",
92
+
"name": "What happens with multi-colored SVGs?",
93
+
"acceptedAnswer": {
94
+
"@type": "Answer",
95
+
"text": "When merging paths with different colors, all paths will inherit the color of the first path. This means details with different colors may become less visible or disappear. The tool will warn you when this happens. For best results, use this tool with single-color SVGs or SVGs where overlapping paths create cutouts."
88
96
}
89
97
},
90
98
{
@@ -273,7 +281,11 @@ <h3 class="font-semibold text-slate-900 dark:text-slate-100 mb-2">What is an SVG
273
281
</div>
274
282
<div>
275
283
<h3class="font-semibold text-slate-900 dark:text-slate-100 mb-2">Will merging paths change my SVG appearance?</h3>
276
-
<pclass="text-slate-600 dark:text-slate-400">No, merging paths only combines the path data into a single element. The visual appearance remains exactly the same. However, if multiple paths have different fill or stroke colors, the merged path will inherit the fill or stroke color of the first path.</p>
284
+
<pclass="text-slate-600 dark:text-slate-400">In most cases, no. The visual appearance remains the same when paths use the same colors. However, if your SVG uses multiple fill or stroke colors, see the question below about multi-colored SVGs.</p>
285
+
</div>
286
+
<div>
287
+
<h3class="font-semibold text-slate-900 dark:text-slate-100 mb-2">What happens with multi-colored SVGs?</h3>
288
+
<pclass="text-slate-600 dark:text-slate-400">When merging paths with different colors, all paths will inherit the color of the first path. This means details with different colors may become less visible or disappear. The tool will warn you when this happens. For best results, use this tool with single-color SVGs or SVGs where overlapping paths create cutouts (which will be preserved using <codeclass="text-slate-800 dark:text-slate-300">fill-rule="evenodd"</code>).</p>
277
289
</div>
278
290
<div>
279
291
<h3class="font-semibold text-slate-900 dark:text-slate-100 mb-2">Is this tool free to use?</h3>
0 commit comments