Field group link attributes patch causes warning notices with multiple attributes

Created on 25 November 2024, 9 days ago

The patch at https://git.drupalcode.org/project/sector/-/blob/10.1.x/patches/field_gr... has some placeholder text that suggests multiple attributes can be added, however when more than 1 is present it triggers array warnings.

I've probed for the addition of this on the Field Group link module as a feature request, suggesting we could provide some starter code -
https://www.drupal.org/project/field_group_link/issues/3489521 Provide a option to add attributes to the Group link output Active but if that doesn't amount to anything, we might need to clean up this patch a little?

Test case:
Using [data-link-label="Read more"] [aria-label="Read more about [node:title]"] as suggested in the placeholder text caused an issue whenever a space was encountered with a second attribute.

Singularly, [data-link-label="Read more"] works.

🐛 Bug report
Status

Active

Version

10.1

Component

Code

Created by

🇳🇿New Zealand chroid

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024