Skip to content

Commit

Permalink
Merge pull request #730 from smartxworks/bowen/css
Browse files Browse the repository at this point in the history
fix(runtime): increase priority of style trait
  • Loading branch information
tanbowensg authored Jul 19, 2024
2 parents a9cf6f9 + beca5d4 commit b55df8d
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 b55df8d

Please sign in to comment.