Skip to content

Commit

Permalink
fix writing-mode
Browse files Browse the repository at this point in the history
  • Loading branch information
shimotmk committed Dec 17, 2024
1 parent aaaa452 commit c5b5dee
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
11 changes: 10 additions & 1 deletion packages/block-library/src/button/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,16 @@
}
},
"typography": {
"__experimentalSkipSerialization": true,
"__experimentalSkipSerialization": [
"fontSize",
"lineHeight",
"__experimentalFontFamily",
"__experimentalFontWeight",
"__experimentalFontStyle",
"__experimentalTextTransform",
"__experimentalTextDecoration",
"__experimentalLetterSpacing"
],
"fontSize": true,
"lineHeight": true,
"__experimentalFontFamily": true,
Expand Down
1 change: 1 addition & 0 deletions packages/block-library/src/button/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,7 @@ function ButtonEdit( props ) {
...spacingProps.style,
...shadowProps.style,
...typographyProps.style,
writingMode: undefined,
} }
onReplace={ onReplace }
onMerge={ mergeBlocks }
Expand Down
1 change: 1 addition & 0 deletions packages/block-library/src/button/save.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c5b5dee

Please sign in to comment.