Fix: Ensure popover modals in block editor display above metaboxes #64958
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.
Problem:
When metaboxes are attached to the bottom of the screen in the WordPress block editor, popover modals (e.g., link editing popovers) within the
.editor-visual-editor
element are incorrectly rendered beneath these metaboxes. This issue makes the popovers partially or fully obscured, leading to usability problems, particularly when editing links within blocks that are located at the bottom of the screen next to possible subsequent metaboxes.Solution:
Added a
z-index: 9;
to the.editor-visual-editor
CSS rule. This change ensures that the.editor-visual-editor
element and its child popovers are displayed above any metaboxes, preventing them from being obscured and maintaining their usability.Affected Files:
z-index
property.This commit resolves the issue where popover modals are not fully visible due to being rendered underneath subsequent containers. #64957
Why?
#64957