Fix resolution of alpha values inside color functions (#9008)

* Fix resolution of alpha values inside color functions

* Update changelog
This commit is contained in:
Jordan Pittman 2022-08-02 11:13:04 -04:00 • committed by GitHub
parent 0b5bfc8065
commit 89b960d771
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 69 additions and 1 deletions

View file

@ -180,7 +180,7 @@ function resolveFunctionKeys(object) {
val = val[path[index++]]
let shouldResolveAsFn =
isFunction(val) && (path.alpha === undefined || index < path.length - 1)
isFunction(val) && (path.alpha === undefined || index <= path.length - 1)
val = shouldResolveAsFn ? val(resolvePath, configUtils) : val
}