Skip to content

Commit ee23c1e

Browse files
committed
fixe failing tests
1 parent 3c4503a commit ee23c1e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/components/templates/mixins/pseudos.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11
import background from "src/components/templates/mixins/background"
22
import borderMixIn from "src/components/templates/mixins/border"
33
import shadow from "src/components/templates/mixins/shadow"
4-
import { fontColor } from "src/components/typography/typography"
4+
import { getColor } from "src/theme"
5+
56
const clearEmptyLines = str => str.replace(/^(?=\n)$|^\s*|\s*$|\n\n+/gm, "")
67

8+
const fontColor = ({ theme, color }) => {
9+
if (!color) return ""
10+
return `color: ${getColor(color)({ theme })};`
11+
}
12+
713
export const callAllFunctionsAndMergeResults = (...fns) => {
814
let result = ""
915
return function mergedFn(arg) {

0 commit comments

Comments
 (0)