Skip to content

Move editToolbar and fix overlapping annotations with it - #21723

Draft
LoukasPap wants to merge 1 commit into
mozilla:masterfrom
LoukasPap:fix/link-overlaps-floating-toolbar
Draft

Move editToolbar and fix overlapping annotations with it#21723
LoukasPap wants to merge 1 commit into
mozilla:masterfrom
LoukasPap:fix/link-overlaps-floating-toolbar

Conversation

@LoukasPap

Copy link
Copy Markdown

Fixes #21643

I moved the editToolbar up to page level and added isolation: isolate to .annotationLayer, .annotationEditorLayer and .editor toolbar elements so that z-index works at their level. That way we avoid the z-index of a nested annotation (e.g. a linkAnnotation) "compete" with the z-index of the editToolbar.

This PR also fixes a bug where a textAnnotation was rendered above the editToolbar.

@LoukasPap LoukasPap changed the title Fix link overlapping floating toolbar Move editToolbar and fix overlapping annotations with it Aug 6, 2026
@LoukasPap
LoukasPap marked this pull request as draft August 6, 2026 20:49
@LoukasPap

Copy link
Copy Markdown
Author

This is currently a draft because I haven't yet added the integration tests. I pushed anyway to make sure we agree with the solution and then move on.

@LoukasPap
LoukasPap force-pushed the fix/link-overlaps-floating-toolbar branch from 8b69992 to 7c9c34c Compare August 6, 2026 20:55
@LoukasPap
LoukasPap force-pushed the fix/link-overlaps-floating-toolbar branch from 7c9c34c to c48cbd1 Compare August 6, 2026 20:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Overlapping link can be clicked through editor toolbar

2 participants