-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Navigation screen] Separate block navigator focus from the editor fo…
…cus (#22996) * Separate the navigator selection from the editor area selection * add __experimental prefix and use list of selected blocks instead of a single id * Don't attempt to call __experimentalSelectBlock when it's not provided * Drop onClick and only pass selectBlock to BlockNavigationBlock * Remove selection CSS * Stop rendering movers for selected block * Add "Go to block" navigator menu action * Fix unit test * Restore the previous way of focusing items in the navigator * Lint * Ensure clicking go to block always works * Add a README file
- Loading branch information
Showing
13 changed files
with
173 additions
and
64 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
13 changes: 13 additions & 0 deletions
13
packages/block-editor/src/components/block-settings-menu/README.md
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
BlockSettingsMenu | ||
============ | ||
|
||
This is a menu that allows the user to act on the block (duplicate, remove, etc). | ||
|
||
# BlockSettingsDropdown | ||
|
||
This is the dropdown itself, it covers the bulk of the logic of this component. | ||
|
||
## Props | ||
|
||
`__experimentalSelectBlock` - A callback. If passed, interacting with dropdown options (such as duplicate) will not update the | ||
editor selection. Instead, every time a selection change should happen the callback will be called with a proper clientId. |
This file contains 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
Oops, something went wrong.