Skip to content

Conversation

@JayGeorge
Copy link

Occasionally, buttons are close together—and in this case, I think it's sensible to pull dropdown triggers a z-index above by default.

For example, when you have a dropdown very close to a long horizontal replicator "plus" button, the dropdown should take precedence.

2025-11-25 at 15 58 40@2x

… you have a dropdown very close to a long horizontal replicator "plus" button, the dropdown should take precedence.
Copy link
Member

@jasonvarga jasonvarga left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The replicator bar is the awkward thing here. I think that should figure its own problem out.

The same problem happens for example if you have a link in the replicator instructions. Part of the link if unclickable because of the replicator bar.

If we end up adding more stuff above the field (which could happen in #13157 (comment), for example) we'd just have more of the same problem.

@JayGeorge JayGeorge changed the title [6.x] Default z index for dropdown buttons [6.x] Improve replicator click areas Dec 1, 2025
@JayGeorge
Copy link
Author

I think you're right there.

I've pushed some updates to try and improve the replicator button areas instead…

The top replicator "add button" now has a smaller UI, but the same underlying hover target area.
This means you can still hover anywhere but the underlying horizontal bar doesn't block the "more" dots to the right.

2025-12-01 at 17 54 10@2x

As a consequence of this, I've updated the replicator "add set" bar to use a subtle gradient, which I think is kinda nice.

2025-12-01 at 17 57 41@2x

Finally I fixed another thing that was bothering me. Previously if you clicked anywhere within the horizontal space of "Add block" you would get a new block. While this seemed cool to me at first, I've accidentally triggered this numerous times and it became annoying. I've fixed this, so you now have to click the "Add Block" button, rather than any dead space around it.

2025-12-01 at 18 01 12@2x

@JayGeorge JayGeorge marked this pull request as draft December 1, 2025 18:09
@JayGeorge
Copy link
Author

Gotta dash for this eve but I have a solution for the replicator description thing too so I've converted this to a draft. I'll push that up tomorrow.

@JayGeorge
Copy link
Author

OK, I think I've got a good draft now, pending your feedback :)

Hover state when instructions are either empty or below

I've made the interface shorter than previously, in case the field title is long

2025-12-02 at 11 45 56@2x

When instructions are above (not hovered)

2025-12-02 at 11 48 34@2x

When instructions are above (hovered)

2025-12-02 at 11 49 08@2x

When a link in the instructions is hovered

Here I've put it in the most awkward position possible—right above the "plus" replicator button

2025-12-02 at 11 50 19@2x

Small viewport

2025-12-02 at 11 52 23@2x

@JayGeorge JayGeorge requested a review from jasonvarga December 2, 2025 11:54
@JayGeorge JayGeorge marked this pull request as ready for review December 2, 2025 11:54
@JayGeorge JayGeorge marked this pull request as draft December 2, 2025 15:25
@JayGeorge
Copy link
Author

Sorry about the massive detour here. I ended up reverting a lot of this because of side effects with hover states on the "more" dots, and it was getting far too complicated.

Anyway, so now the changes vs master is:

  1. Occasionally, buttons are close together—and in this case, I think it's sensible to pull dropdown triggers a z-index above by default. For example, when you have a dropdown very close to a long horizontal replicator "plus" button, the dropdown should take precedence.

To fix this I've actually simple increased the gap, similar to how v5 handled this—although the gap is not as large, and I've increased the starting connector height to compensate this.

  1. Previously, if you clicked anywhere within the horizontal space of "Add block", you would get a new block. While this seemed cool to me at first, I've accidentally triggered this numerous times, and it became annoying. I've fixed this, so you now have to click the "Add Block" button, rather than any dead space around it.

  2. I've also kept the subtle gradient to the replicator "add set" bar because I thought it looked kinda nice

@JayGeorge JayGeorge marked this pull request as ready for review December 3, 2025 20:42
@martyf
Copy link
Contributor

martyf commented Dec 3, 2025

I've looked at the PR but still has the old Quick Actions menu.

With the new Quick Actions, the "add set" display sits above the Quick Actions, meaning I can have my cursor over a button, but the "add set" is what has focus.

Untitled.mov

@JayGeorge
Copy link
Author

JayGeorge commented Dec 4, 2025

Hi Marty,

I merged in the master branch, and it worked fine with the new quick actions since there's a bit more room…

However, I've made some further adjustments—pulling up the quick actions by 0.5 since they feel a touch taller than the horizontal dots, and increasing the top "add set" space.

2025-12-04 at 10 21 05@2x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants