From 6310c998cb7deb1aad38ffd7a686c370e88ad071 Mon Sep 17 00:00:00 2001 From: ankit-tailor Date: Wed, 8 Nov 2023 13:57:23 +0530 Subject: [PATCH] fix: descendants compound variants resolution --- packages/react/src/styled.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react/src/styled.tsx b/packages/react/src/styled.tsx index 2f9c09ba..75dfc3ed 100644 --- a/packages/react/src/styled.tsx +++ b/packages/react/src/styled.tsx @@ -492,7 +492,7 @@ function setStateAndColorModeCssIdsAndProps( passingProps: mergedPassingProps, } = getMergedStateAndColorModeCSSIdsAndProps( //@ts-ignore - sxDescendantStyleIds.current, + sxDescendantStyleIds.current[key], sxDescendantFlattenStyleObject[key]?.[ 'componentBaseStyleFlatternStyleIdObject' ],