We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a0a9d5 commit 0af91b8Copy full SHA for 0af91b8
plugin/assets/src/block-editor/blocks/button/edit.js
@@ -201,6 +201,12 @@ const ButtonEdit = ( {
201
}
202
}, [ isSubmitButton ] ); // eslint-disable-line
203
204
+ useEffect( () => {
205
+ if ( 'large' === size ) {
206
+ setAttributes( { elevationStyle: 'filled' } );
207
+ }
208
+ }, [ size ] ); //eslint-disable-line react-hooks/exhaustive-deps
209
+
210
const colorSettings = {
211
text: {
212
label: __( 'Text Color', 'material-design' ),
0 commit comments