Skip to content

Commit f901f00

Browse files
Mamadukat-hamanolipemat
authored
ServerSideRender: Allow skipping block shadow support value (#70970)
Co-authored-by: Mamaduka <[email protected]> Co-authored-by: t-hamano <[email protected]> Co-authored-by: lipemat <[email protected]>
1 parent e5ff7e4 commit f901f00

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

packages/server-side-render/src/hook.js

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,15 @@ export function removeBlockSupportAttributes( attributes ) {
2727
...restAttributes
2828
} = attributes;
2929

30-
const { border, color, elements, spacing, typography, ...restStyles } =
31-
attributes?.style || {};
30+
const {
31+
border,
32+
color,
33+
elements,
34+
shadow,
35+
spacing,
36+
typography,
37+
...restStyles
38+
} = attributes?.style || {};
3239

3340
return {
3441
...restAttributes,

packages/server-side-render/src/test/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ describe( 'rendererPath', () => {
104104
},
105105
},
106106
},
107+
shadow: 'var:preset|shadow|crisp',
107108
spacing: {
108109
margin: {
109110
top: '10px',

0 commit comments

Comments
 (0)