From beca5d4b0f3745f3ff8c7da9270938d7b673dfde Mon Sep 17 00:00:00 2001 From: Bowen Tan Date: Thu, 18 Jul 2024 18:03:06 +0800 Subject: [PATCH] fix(runtime): increase priority of style trait --- packages/runtime/src/traits/core/Style.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/runtime/src/traits/core/Style.tsx b/packages/runtime/src/traits/core/Style.tsx index 87f65b49..0723d1a6 100644 --- a/packages/runtime/src/traits/core/Style.tsx +++ b/packages/runtime/src/traits/core/Style.tsx @@ -31,7 +31,7 @@ export default implementRuntimeTrait({ } const cssPropertiesStr = convertCssObjToText(cssProperties || {}); // add a ';' between css texts, in case user forgets to add ';' in the end - result[styleSlot] = `&&& {${result[styleSlot]};${style};${cssPropertiesStr}}`; + result[styleSlot] = `.App &&& {${result[styleSlot]};${style};${cssPropertiesStr}}`; return result; }, {} as Record); return {