Skip to content

Commit 9d46471

Browse files
committed
fix issue with background modifier
1 parent af8b8ad commit 9d46471

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/commons/modifiers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export function extractBackgroundColorValue(props) {
2323

2424
const keys = Object.keys(props);
2525
const bgProp = _.findLast(keys, prop => Colors.getBackgroundKeysPattern().test(prop));
26-
if (bgProp) {
26+
if (props[bgProp]) {
2727
const key = bgProp.replace(Colors.getBackgroundKeysPattern(), '');
2828
backgroundColor = Colors[key];
2929
}

0 commit comments

Comments
 (0)