Skip to content

Commit

Permalink
Improve support for constructed backgrounds with variables
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderby committed May 7, 2024
1 parent 4139770 commit bfe4959
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/inject/dynamic-theme/variables.ts
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ export class VariablesStore {
return modifier(value, theme);
};
}
if (property === 'background-color') {
if (property === 'background-color' || (isSimpleConstructedColor && property === 'background')) {
return (theme) => {
return replaceCSSVariablesNames(
sourceValue,
Expand Down

0 comments on commit bfe4959

Please sign in to comment.