Repository navigation
Conversation
|
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. |
7c9c34c to
c48cbd1
Compare
f1d551a to
356901b
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #21723 +/- ##
==========================================
- Coverage 90.31% 90.31% -0.01%
==========================================
Files 269 269
Lines 67542 67545 +3
==========================================
+ Hits 61000 61001 +1
- Misses 6542 6544 +2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
I'll squash and do the final push if PR is ok. |
631237b to
0067ba1
Compare
|
/botio-linux preview |
From: Bot.io (Linux m4)ReceivedCommand cmd_preview from @timvandermeij received. Current queue size: 1 |
From: Bot.io (Linux m4)SuccessTotal script time: 1.36 mins Published
|
|
The failing test is flaky. |
|
I have resolved the conflicts but don't push yet in case @calixteman asks for changes. |
timvandermeij
left a comment
There was a problem hiding this comment.
Looks good to me, with the final comments addressed. This seems to work just fine in the viewer, but given his familiarity with this code I'd prefer @calixteman to give the final approval here. Thank you for your contribution!
| }); | ||
| }); | ||
|
|
||
| describe("editToolbar is rendering over annotations", () => { |
There was a problem hiding this comment.
This is not for this PR, but in a follow-up we might want to consider moving the floating toolbar tests into their own spec. It feels a bit odd conceptually to have it here because we don't create actual highlight annotations in these tests, nor is the floating toolbar only for highlight annotations as comments can also be created with it now. (It originally used to only be for highlighting, and the preference name is also called that, but I think that predates the commenting addition.)
@calixteman What do you think?
0067ba1 to
9801a3a
Compare
|
Any update on this? @calixteman |
Fixes #21643
I moved the editToolbar up to page level and added
isolation: isolateto.annotationLayer,.annotationEditorLayerand.editor toolbarelements 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.
Tests
I used
document.elementFromPoint(x,y)to check every time which elements is rendered on top.I also moved createFreeTextEditor() to
test_utils.mjsto make it available to all tests that may need itTest 1 — "the edit toolbar is rendered above link annotations"
Test 2 — "the edit toolbar is rendered above text annotations"