Skip to content

Commit 615e687

Browse files
committed
chore: support lightingColor
1 parent 1bf3890 commit 615e687

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

src/css/css.tsx

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,14 @@ function resolveVariables(
631631
);
632632
}
633633

634-
const propsToResolve = ['fill', 'color', 'stroke', 'stopColor', 'floodColor'];
634+
const propsToResolve = [
635+
'color',
636+
'fill',
637+
'floodColor',
638+
'lightingColor',
639+
'stopColor',
640+
'stroke',
641+
];
635642
const resolveElementVariables = (
636643
element: XmlAST,
637644
variables: Map<string, string>
@@ -692,7 +699,7 @@ export const inlineStyles: Middleware = function inlineStyles(
692699
const sortedSelectors = sortSelectors(selectorsPseudo).reverse();
693700

694701
const elementsWithColor = cssSelect(
695-
'*[fill], *[color], *[stroke], *[stopColor], *[floodColor]',
702+
'*[color], *[fill], *[floodColor], *[lightingColor], *[stopColor], *[stroke]',
696703
document,
697704
cssSelectOpts
698705
);

0 commit comments

Comments
 (0)