From 56625086337fe41cd4ad18b4240f56f37c2cf3d1 Mon Sep 17 00:00:00 2001 From: Siobhan Date: Mon, 9 Aug 2021 10:53:43 +0100 Subject: [PATCH] Group FooterMessageControl into "Featured" panel The placement of the component is moved within the main "Featured Image" panel, as this is more semantically correct than having the component within its own, separate panel. --- packages/block-library/src/image/edit.native.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/block-library/src/image/edit.native.js b/packages/block-library/src/image/edit.native.js index 1f05d34cc1342a..83d561d8aad9a7 100644 --- a/packages/block-library/src/image/edit.native.js +++ b/packages/block-library/src/image/edit.native.js @@ -462,6 +462,7 @@ export class ImageEdit extends Component { styles.removeFeaturedButton, ] } cellContainerStyle={ styles.setFeaturedButtonCellContainer } + separatorType={ 'none' } onPress={ () => this.onSetFeatured( MEDIA_ID_NO_FEATURED_IMAGE_SET ) } @@ -473,6 +474,7 @@ export class ImageEdit extends Component { label={ __( 'Set as Featured Image ' ) } labelStyle={ setFeaturedButtonStyle } cellContainerStyle={ styles.setFeaturedButtonCellContainer } + separatorType={ 'none' } onPress={ () => this.onSetFeatured( attributes.id ) } /> ); @@ -567,8 +569,6 @@ export class ImageEdit extends Component { > { canImageBeFeatured && this.getFeaturedButtonPanel( isFeaturedImage ) } - -