Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix toolbar for post excerpt warning #30280

Draft
wants to merge 1 commit into
base: trunk
from

Conversation

@carolinan
Copy link
Contributor

@carolinan carolinan commented Mar 26, 2021

Description

Fixes #30279
Moves the warning and wraps it inside a div with blockProps.

How has this been tested?

Follow the instructions in the issue.

Confirm that the warning now has a block toolbar; that the toolbar is still present when moved to top,
and that the block still works when placed in a post context for example query/loop.

Screenshots

Types of changes

Bug fix

Checklist:

  • My code is tested.
  • My code follows the WordPress code style.
  • My code follows the accessibility standards.
  • I've tested my changes with keyboard and screen readers.
  • My code has proper inline documentation.
  • I've included developer documentation if appropriate.
  • I've updated all React Native files affected by any refactorings/renamings in this PR.
return (
<Warning>{ __( 'Post excerpt block: no post found.' ) }</Warning>
);
}
return (
<PostExcerptEditor

This comment has been minimized.

@youknowriad

youknowriad Mar 26, 2021
Contributor

It seems that component is useless, we can just remove it and embed everything here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

2 participants