Opened 7 weeks ago
Closed 4 weeks ago
#61928 closed defect (bug) (reported-upstream)
Metaboxes overlap block editor's edit link popup
Reported by: | tessawatkinsllc | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | trivial | Version: | 6.6.1 |
Component: | Editor | Keywords: | |
Focuses: | css | Cc: |
Description
Bug: The link editor box is obscured by the metaboxes when the linked content is near the metaboxes, if they have content, and if that content expands the overall scroll height of the page making it so the bottom of the editor is not near the bottom of the page. This prevents users from being able to edit their links in this specific situation.
Expectation: the link editor box should overlay the metaboxes, or it should open upward, allowing users to be able to edit them in all situations.
Note: While the metaboxes don't have content in a blank install, the container of these metaboxes and the ability to add them are provided by core, therefore I believe the solution should be provided in core.
Environment Info for Testing
- WordPress version 6.6.1
- Desktop with Windows 11 Pro
- Google Chrome Browser version 128.0.6613.84 (Official Build) (64-bit)
- Yoast SEO version 23.3 (or any plugin that adds a metabox to the post edit page)
Steps to Reproduce
- Use a fresh install of WordPress
- Install and activate any plugin that adds meta boxes to the post page
- Create a new post
- Copy/paste the first five (5) paragraphs of Lorem Ipsum into the body, this should automatically create five paragraph blocks.
- Ensure that the metabox(es) is(are) expanded, extending the scroll height of the page.
- Scroll down so that the bottom of the editor where it meets the metaboxes are in the middle of the page.
- Highlight the last word with your mouse and then press CTRL + K to add a link, this reveals the link editor's popup box below the highlighted text and displays behind the metabox(es).
Proposed solution 1 (quickfix): Add z-index: -1
to .edit-post-layout__metaboxes
in after line 95 of file /wp-includes/css/dist/edit-post/style.css
and in its minified file. This changes it so the metaboxes are below the link editor's popup, allowing it to be fully visible.
Proposed solution 2 (preferred): Edit the JS responsible for determining whether it should open upward or downward to reflect an upward opening when it is near the bottom of the editor (div element with editor-visual-editor
class), not just the bottom of the visible window or screen.
Attachments (1)
Change History (6)
#2
@
7 weeks ago
Hi @tessawatkinsllc
Welcome to the Core Trac!
This is related to the Gutenberg, so this should be reported in https://github.com/WordPress/gutenberg
I have reported the same to Gutenberg and also submitted patch for the same.
Issue : https://github.com/WordPress/gutenberg/issues/64812
PR with Patch : https://github.com/WordPress/gutenberg/pull/64813
#3
@
7 weeks ago
Thanks for the report.
This problem has been fixed in #63939. This fix will be available in the next minor WordPress release.
#4
@
7 weeks ago
Thank you @narenin and @wildworks! I wasn't sure if it was technically block editor/gutenberg related due to it not being compiled in the same CSS, but it is why I had written out the bug this way :)
#5
@
4 weeks ago
- Milestone Awaiting Review deleted
- Resolution set to reported-upstream
- Status changed from new to closed
Closing this ticket as reported upstream.
Please note, this bug was fixed in 6.6.2.
References:
- Bugfix: Post Editor: Prevent popover from being hidden by metabox
- [58988] is the changeset that updated the npm packages which included this fix.
My current workaround (snippet can be placed in child theme's functions.php, plugin, etc.)