diff --git a/packages/block-library/src/button/block.json b/packages/block-library/src/button/block.json index 2d7b28938b22cb..85ed4c3982cd03 100644 --- a/packages/block-library/src/button/block.json +++ b/packages/block-library/src/button/block.json @@ -85,7 +85,16 @@ } }, "typography": { - "__experimentalSkipSerialization": true, + "__experimentalSkipSerialization": [ + "fontSize", + "lineHeight", + "__experimentalFontFamily", + "__experimentalFontWeight", + "__experimentalFontStyle", + "__experimentalTextTransform", + "__experimentalTextDecoration", + "__experimentalLetterSpacing" + ], "fontSize": true, "lineHeight": true, "__experimentalFontFamily": true, diff --git a/packages/block-library/src/button/edit.js b/packages/block-library/src/button/edit.js index 78cf8969777ad3..e43e71379dd2e4 100644 --- a/packages/block-library/src/button/edit.js +++ b/packages/block-library/src/button/edit.js @@ -318,6 +318,7 @@ function ButtonEdit( props ) { ...spacingProps.style, ...shadowProps.style, ...typographyProps.style, + writingMode: undefined, } } onReplace={ onReplace } onMerge={ mergeBlocks } diff --git a/packages/block-library/src/button/save.js b/packages/block-library/src/button/save.js index 255e3a31dde385..9069f25182a015 100644 --- a/packages/block-library/src/button/save.js +++ b/packages/block-library/src/button/save.js @@ -59,6 +59,7 @@ export default function save( { attributes, className } ) { ...spacingProps.style, ...shadowProps.style, ...typographyProps.style, + writingMode: undefined, }; // The use of a `title` attribute here is soft-deprecated, but still applied