Move insert component button "visually-hidden" mark up into the theme template

Created on 25 June 2024, 2 months ago

Problem/Motivation

The hidden "Choose component" text in the button has been raised as a usability issue on a project I'm working on. This feels like a theme-level decision and it would be more theme-friendly if this markup lived in the template rather than the render array.

Proposed resolution

Move markup into layout-paragraphs-insert-component-btn.html.twig

Remaining tasks

* Agree on proposed resolution
* Write patch

User interface changes

None

API changes

Could potentially change sites that already override this template.

Feature request
Status

Active

Version

2.0

Component

User interface

Created by

🇬🇧United Kingdom LewisNyman

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

    Makes Drupal easier to use. Preferred over UX, D7UX, etc.

  • theming

    Used in Documentation issues related to theming

Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024