Contextual links can be used to drag and drop Layout Blocks.

Created on 14 February 2019, almost 6 years ago
Updated 17 March 2024, 9 months ago

Problem/Motivation

Is is possible to use contextual links to drag and drop Layout Blocks. Note that they still function fine as links when they're clicked - they just shouldn't perform double duty as drag/drop anchors.

The desired behavior is:

  1. If you click and drag anywhere in a Layout Block that is not part of contextual links, you should be able to drag the block to a new position.
  2. If you click and drag on the pencil icon that opens contextual links, you should notbe able to drag the block to a new position.
  3. If you click and drag on a contextual link (as made visible by clicking the pencil icon), you should notbe able to drag the block to a new position.
  4. This issue exists because #3 is not currently happening.

    Worth mentioning that although this should be addressed, it should be prioritized with these points in mind:

    1. This is not something a user would likely encounter with typical use. The contextual links must first be made visible, then the link itself must be dragged instead of clicked.
    2. The consequences of this are pretty benign and may not even be perceived as broken were a user to encounter it.

    Know more about Contextual Links β†’ .

    Proposed resolution

    Update JS in behaviors.layoutBuilderBlockDrag so contextual links can't be used to drag Layout Blocks.

    Remaining tasks

    Apply the resolution

    User interface changes

    Contextual links won't be able to drag Layout Blocks.

    API changes

    N/A

    Data model changes

    N/A

    Release notes snippet

    N/A

πŸ› Bug report
Status

Fixed

Version

10.3 ✨

Component
Layout builderΒ  β†’

Last updated 1 day ago

Created by

πŸ‡ΊπŸ‡ΈUnited States bnjmnm Ann Arbor, MI

Live updates comments and jobs are added and updated live.
  • Accessibility

    It affects the ability of people with disabilities or special needs (such as blindness or color-blindness) to use Drupal.

  • Blocks-Layouts

    Blocks and Layouts Initiative. See the #2811175 Add layouts to Drupal issue.

Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024