node component author attributes mess

Created on 11 May 2024, 6 months ago
Updated 26 May 2024, 6 months ago

Problem/Motivation

I think that there's some bad definitions in node.twig in node component:
author_attributes is used as a class array

{%
  set author_attributes = [
    'author',
  ]|merge(author_utility_classes ?: [])
%}

In line:
https://git.drupalcode.org/project/radix/-/blob/6.0.x/components/node/no...

so is not going to be compatible with the posterior:

<div {{ author_attributes.addClass(author_utility_classes) }}>

in https://git.drupalcode.org/project/radix/-/blob/6.0.x/components/node/no...

Proposed resolution

replace author_attributes array with new array author_classes to be used as parameter by the author_attributes.addClass method.

🐛 Bug report
Status

Fixed

Version

6.0

Component

Code

Created by

🇪🇸Spain aleix

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

Comments & Activities

Production build 0.71.5 2024