Problem/Motivation

Currently we style links (such as "Add new comment") as buttons but we're adding the .button class to a wrapper element rather than the link (a) element, with the result that only the text of the button is clickable.

Proposed resolution

Pull related code from fields.html.twig into a Twig macro, merge_attributes, and reuse here.

Remaining tasks

User interface changes

API changes

New macro, merge_attributes.

Data model changes

Comments

nedjo created an issue. See original summary.

  • nedjo committed b9487e4 on 8.x-1.x
    Issue #2908965 by nedjo: Button for link should attach to a element
    
nedjo’s picture

Status: Active » Fixed

  • nedjo committed 356bcc9 on 8.x-1.x
    Issue #2908965 by nedjo: Fix merge_attributes macro to work with numeric...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.