fix tests
This commit is contained in:
parent
7f89efa4f9
commit
a4560d562d
1 changed files with 1 additions and 1 deletions
|
@ -216,7 +216,7 @@ export const getTextColor = function (bg, text, preserve) {
|
||||||
}
|
}
|
||||||
|
|
||||||
const base = typeof text.a !== 'undefined' ? { a: text.a } : {}
|
const base = typeof text.a !== 'undefined' ? { a: text.a } : {}
|
||||||
return Object.assign(base, result)
|
return Object.assign(convert(result).rgb, base)
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue