Problem/Motivation

On a view of teasers, such as the front page, the view's contextual links button and the first row's contextual links button are drawn in the same place: the top right corner that the view's region and the first row's region share. Clicking there opens the view's menu (Edit view), so the first row's links (Edit, Delete) can't be reached with a mouse. The other rows' buttons work, since their corners aren't shared with the view's.

Nested contextual links triggers don't work well fixed nested contextual links in 2013, and its comment 18 describes a view's button overlapping a block's. This is the same kind of overlap, between a view and its first row.

Steps to reproduce

  1. On a standard install with Olivero, create a few articles and promote them to the front page.
  2. Log in as a user with Use contextual links and permission to edit the articles and views.
  3. On the front page, hover over the first teaser and click its contextual links button (the pencil).
  4. The view's menu opens, with Edit view, instead of the article's Edit and Delete.

Both buttons are at the same position: in a 1440 px wide window, both are 26 × 26 px at the same coordinates.

Proposed resolution

To be decided. Some options:

  • In contextual.js, when a region's button would sit at the same position as an enclosing region's button, move the inner one, such as below the outer one.
  • Place a view's button outside its first row's corner, such as above the view's content.

Remaining tasks

  • Agree on the approach.
  • Write a fix with a FunctionalJavascript test that the first row's button can be clicked.

User interface changes

The first row's contextual links button moves so that it can be clicked.

AI disclosure

Generated with the help of an LLM. Claude Code found the overlap by measuring both buttons' positions and clicking the shared spot in a headless browser on a local Drupal 11.4 site, searched for existing issues, and drafted this summary. I noticed the first row's links couldn't be opened, asked for it to be investigated, and reviewed the draft.

Comments

dave reid created an issue.