diff --git a/packages/block-library/src/button/block.json b/packages/block-library/src/button/block.json index 9b33ee27d6c418..01097b424462fa 100644 --- a/packages/block-library/src/button/block.json +++ b/packages/block-library/src/button/block.json @@ -65,7 +65,9 @@ "__experimentalSkipSerialization": true, "gradients": true }, + "fontSize": true, "reusable": false, + "__experimentalFontFamily": true, "__experimentalSelector": ".wp-block-button__link" }, "editorStyle": "wp-block-button-editor", diff --git a/packages/block-library/src/button/edit.js b/packages/block-library/src/button/edit.js index b0fcc297d6b9ed..714554e2ffdc96 100644 --- a/packages/block-library/src/button/edit.js +++ b/packages/block-library/src/button/edit.js @@ -241,6 +241,7 @@ function ButtonEdit( props ) { { ...blockProps } className={ classnames( blockProps.className, { [ `has-custom-width wp-block-button__width-${ width }` ]: width, + [ `has-custom-font-size` ]: blockProps.style.fontSize, } ) } >