-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Block Toolbar & Popover component - Prevent sticky position from caus…
…ing permanently obscured areas of the selected block. (#33981) * try using next block as anchor * place popover below block if available when sticky * if starts at bottom of block, keep there * fix edge cases * add bottom sticky position * fix jumpy bug on using toolbar * revert to default behavior as soon as there is room. no bottom sticky necessary * refactor logic and comment * remove unnecessary else * gross selectors * pass content wrapper through to popover as prop * minor refactor * use bottom sticky if necessary * update names, comments, JSDocs * add basic store tests * remove store goo * use the contentRef * Update packages/block-editor/src/components/block-tools/block-popover.js
- Loading branch information
1 parent
599b60d
commit 60d907b
Showing
3 changed files
with
71 additions
and
35 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