Skip to content

Commit

Permalink
Adding background to global styles output in the site editor
Browse files Browse the repository at this point in the history
  • Loading branch information
ramonjd committed Feb 26, 2024
1 parent 841e782 commit f7bb5df
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -600,6 +600,7 @@ const STYLE_KEYS = [
'filter',
'outline',
'shadow',
'background',
];

function pickStyleKeys( treeToPickFrom ) {
Expand Down
5 changes: 5 additions & 0 deletions packages/blocks/src/api/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ export const __EXPERIMENTAL_STYLE_PROPERTY = {
requiresOptOut: true,
useEngine: true,
},
backgroundImage: {
value: [ 'background', 'backgroundImage' ],
support: [ 'background', 'backgroundImage' ],
useEngine: false,
},
backgroundRepeat: {
value: [ 'background', 'backgroundRepeat' ],
support: [ 'background', 'backgroundRepeat' ],
Expand Down

0 comments on commit f7bb5df

Please sign in to comment.