Skip to content

Commit

Permalink
Group FooterMessageControl into "Featured" panel
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Siobhan committed Aug 9, 2021
1 parent 823df2b commit 5662508
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/block-library/src/image/edit.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
}
Expand All @@ -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 ) }
/>
);
Expand Down Expand Up @@ -567,8 +569,6 @@ export class ImageEdit extends Component {
>
{ canImageBeFeatured &&
this.getFeaturedButtonPanel( isFeaturedImage ) }
</PanelBody>
<PanelBody>
<FooterMessageControl
label={ __(
'Changes to featured image will not be affected by the undo/redo buttons.'
Expand Down

0 comments on commit 5662508

Please sign in to comment.