Skip to content

Commit

Permalink
Large button is always filled
Browse files Browse the repository at this point in the history
  • Loading branch information
emeaguiar committed Aug 25, 2022
1 parent 1a0a9d5 commit 0af91b8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions plugin/assets/src/block-editor/blocks/button/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,12 @@ const ButtonEdit = ( {
}
}, [ isSubmitButton ] ); // eslint-disable-line

useEffect( () => {
if ( 'large' === size ) {
setAttributes( { elevationStyle: 'filled' } );
}
}, [ size ] ); //eslint-disable-line react-hooks/exhaustive-deps

const colorSettings = {
text: {
label: __( 'Text Color', 'material-design' ),
Expand Down

0 comments on commit 0af91b8

Please sign in to comment.