Skip to content

Commit

Permalink
fix(runtime): increase priority of style trait
Browse files Browse the repository at this point in the history
  • Loading branch information
tanbowensg committed Jul 18, 2024
1 parent a9cf6f9 commit beca5d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/runtime/src/traits/core/Style.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit beca5d4

Please sign in to comment.