-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Fix toolbar alignment in widget block editor #31698
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
Closed
donnapep
wants to merge
678
commits into
WordPress:trunk
from
donnapep:fix/widget-editor-toolbar-alignment
Closed
Fix toolbar alignment in widget block editor #31698
donnapep
wants to merge
678
commits into
WordPress:trunk
from
donnapep:fix/widget-editor-toolbar-alignment
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
talldan
approved these changes
May 19, 2021
Contributor
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @donnapep, this is working well for me.
I've restarted the CI tests to see why they might be failing.
Contributor
|
There are still some unusual failures in the CI tests. @donnapep Would you be able to rebase the branch against the latest |
* Use JSON serialization * Move JSON to getAllBlocks * Add comment
#29573) * Block nodes: create useBlockRef for access to block node via ref * Try layout effect * Adjust useMergeRef to not depend on ref order * wip * Rewrite * Fix multi select * Revert useMergeRefs * Fix roving toolbar reset * Add inline docs
…#31209) * components: Remove G2 portal * components: Update popover to no longer use g2 * components: Update Card snapshots for popover
* Try: Toolbar gap. * Retry toolbar gap * Restore pointer-events with a more general selector * Update packages/block-editor/src/components/block-list/style.scss Co-authored-by: Mitchell Austin <[email protected]>
* Blocks: Introduce registerBlockTypeFromMetadata API * Add i18n schema for block.json * Docs: Update documentation for metadata and internationalization * Test: Add test for registerBlockTypeFromMetadata * Blocks: Translate metadata loaded from block.json * Make fields translatable * Docs: Add changelog entry * Add i18n support for variations read from block metadata
* components: Remove wp-g2 from scrollable * Update snapshot tests * Update popover tests for scrollover dependency * components: Update Card snapshots for scrollable
* In-between inserter: use usRefCallback, use showInsertionPoint * Fix nested block issue * Clean up * Make __unstableOptions optional * Make InsertionPoint a component again * Clean up * Rebase fixes
* components: Remove wp-g2 from form-group and control-label * Update snapshots
* components: Remove wp-g2 imports from elevation * components: Update elevation storybook to remove css prop * Fix compilation errors and remove a usage of the `config` helper * Update snapshot tests
* components: Remove wp-g2 from surface * Update snapshots
#31243) * components: Remove wp-g2 from flex, vstack, hstack, spinner and control-group * Update snapshot tests * Fix text highlighter test * Update snapshots again
* Add color block support to table block
* Release script: Update react-native-editor version to 1.51.0 * Release script: Update with changes from 'npm run core preios' * Release script: Update react-native-editor version to 1.51.1 * Release script: Update with changes from 'npm run core preios' * Updates relative block-support asset path * Update react-native-editor changelog Includes 1.51.1 changes, as well as changes from 1.51.0 that were overlooked and merged into `trunk` _after_ 1.51.0 had been tagged. Co-authored-by: Antonis Lilis <[email protected]>
Contributor
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
[Feature] Widgets Screen
The block-based screen that replaced widgets.php.
[Type] Bug
An existing feature does not function as intended
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Fixes #31021.
Don't apply the
has-parentCSS class to the toolbar if the__experimentalParentSelectorflag is set. This class was applying the left margin to the toolbar when a block was selected in the widget area.How has this been tested?
block-editor-block-contextual-toolbarelement has thehas-parentclass, and that the toolbar alignment is correct.Screenshots
Types of changes
Bug fix
Checklist:
*.native.jsfiles for terms that need renaming or removal).