Repository navigation
fix: stack a draft's toolbar over the Copy of a code block that opens it - #7590
Merged
Merged
Conversation
#7572 drew a light widget's box before its authored children, so a draft's toolbar now stands before its words in the tree. A draft whose words open with a code block puts that block's Copy in the toolbar's seat at the same z-index, and Copy, later in the tree, painted over Edit and took its presses. The toolbar now stacks one level above, as it painted before #7572. test_crossed_responses_wait_for_the_same_thread_widget_module failed on main since #7572 (passes on its parent 2e0b08a, fails on 8320f63 and on 80c18fe) and passes with this change. Refs #7588
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
A draft whose words open with a code block lost its Edit button to the code block's Copy. #7572 drew a light widget's box before its authored children, so the draft's toolbar now stands before its words in the tree. The code block's Copy takes the same top-right seat at the same
z-index: 1, comes later in the tree, and so paints over Edit and takes its presses. The toolbar now stacks atz-index: 2, which restores how the corner painted before #7572.test_crossed_responses_wait_for_the_same_thread_widget_moduletimed out clicking Edit (<wa-copy-button …> from <div class="lf-draft-body …"> subtree intercepts pointer events) in run 46209069029. Locally it passes on #7572's parent2e0b08a79, fails on #7572 (8320f6326) and on current main (80c18fe78), and passes with this change.On screen, this changes only the hovered or focused corner of a draft that opens with a code block. Hovering the draft's words in the test's reply, before and after:
The point at Edit's center hits the code block's Copy before and Edit after.
leaf-dev stillsforrelease-draft,release-draft-hoverandplan-marks-draftshows 0 px change. The code block's Copy still shows below the toolbar's edge, as it did before #7572.Refs #7588 — automated triage