Skip to content

Commit

Permalink
Make the OpenTable placeholder display block
Browse files Browse the repository at this point in the history
  • Loading branch information
Copons committed Mar 13, 2020
1 parent eb891d7 commit 92d54be
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions extensions/blocks/opentable/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@ function OpenTableEdit( {

const editClasses = classnames( className, {
[ `${ defaultClassName }-theme-${ style }` ]: ! isEmpty( rid ) && styleValues.includes( style ),
'is-placeholder': isEmpty( rid ),
'is-multi': 'multi' === getTypeAndTheme( style )[ 0 ],
[ `align${ align }` ]: align,
} );
Expand Down
3 changes: 2 additions & 1 deletion extensions/blocks/opentable/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
display: inline-block;
position: relative;

&-theme-wide {
&-theme-wide,
&.is-placeholder {
display: block;
}

Expand Down

0 comments on commit 92d54be

Please sign in to comment.