Skip to content

Commit 30ab62a

Browse files
committed
Parse and render svg icons correctly
1 parent f0266dd commit 30ab62a

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

packages/core/src/components/icon/_icon.scss

+3
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ $icon-classes: (
3131
> svg {
3232
// prevent extra vertical whitespace
3333
display: block;
34+
// paths parsed by generate-icon-paths.js are mirrored vertically, so we need
35+
// to flip them upright here
36+
transform: scaleY(-1);
3437

3538
// inherit text color unless explicit fill is set
3639
&:not([fill]) {

packages/core/src/components/icon/iconUtils.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function kebabCaseToCamelCase<S extends string>(
3232
): KebabCaseToCamelCase<S> {
3333
return (
3434
snakeCaseString
35-
.split("_")
35+
.split("-")
3636
.map((word, i) =>
3737
i === 0 ?
3838
word.toLowerCase() :

0 commit comments

Comments
 (0)