fix(runtime): increase priority of style trait

This commit is contained in:
Bowen Tan 2024-07-18 18:03:06 +08:00
parent a9cf6f9635
commit beca5d4b0f

View File

@ -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<string, string>);
return {