Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -107,12 +107,12 @@ export default function BlockInvalidWarning( { clientId } ) {
onClick={ convert.toRecoveredBlock }
variant="primary"
>
{ __( 'Attempt Block Recovery' ) }
{ __( 'Attempt recovery' ) }
</Button>,
] }
secondaryActions={ secondaryActions }
>
{ __( 'This block contains unexpected or invalid content.' ) }
{ __( 'Block contains unexpected or invalid content.' ) }
</Warning>
{ compare && (
<Modal
Expand Down
11 changes: 2 additions & 9 deletions packages/block-editor/src/components/warning/content.scss
Original file line number Diff line number Diff line change
Expand Up @@ -30,21 +30,14 @@
flex-wrap: wrap;
align-items: baseline;
width: 100%;
gap: $grid-unit-15;
}

.block-editor-warning__actions {
align-items: center;
display: flex;
margin-top: 1em;
gap: $grid-unit-10;
}

.block-editor-warning__action {
margin: 0 $grid-unit-10 0 0;
}
}

.block-editor-warning__secondary {
margin: auto 0 auto $grid-unit-10;
}

.components-popover.block-editor-warning__dropdown {
Expand Down
4 changes: 2 additions & 2 deletions packages/block-library/src/missing/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export default function MissingEdit( { attributes, clientId } ) {
messageHTML = sprintf(
/* translators: %s: block name */
__(
'Your site doesn’t include support for the "%s" block. You can leave this block intact, convert its content to a Custom HTML block, or remove it entirely.'
'Your site doesn’t include support for the "%s" block. You can leave it as-is, convert it to custom HTML, or remove it.'
),
originalName
);
Expand All @@ -84,7 +84,7 @@ export default function MissingEdit( { attributes, clientId } ) {
messageHTML = sprintf(
/* translators: %s: block name */
__(
'Your site doesn’t include support for the "%s" block. You can leave this block intact or remove it entirely.'
'Your site doesn’t include support for the "%s" block. You can leave it as-is or remove it.'
),
originalName
);
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/specs/editor/various/invalid-block.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ test.describe( 'Invalid blocks', () => {
await expect(
editor.canvas
.getByRole( 'document', { name: 'Block: Paragraph' } )
.getByRole( 'button', { name: 'Attempt Block Recovery' } )
.getByRole( 'button', { name: 'Attempt recovery' } )
).toBeVisible();

expect( hasAlert ).toBe( false );
Expand Down