Update SDDS SDCs attributes prop to align with XB

Created on 21 August 2024, 26 days ago
Updated 11 September 2024, 5 days ago

Problem/Motivation

We have a baseline for all SDC YAML and README files that were generated from the script and manually fixed for linting issues.

From XB test component, they have the following for attributes, so we need to see if we need to duplicate that instead of using what we have been using which is a regular prop.

Note that @sea2709 also pointed out needing to revise the attributes prop too along these lines in another issue.

    # @see \Drupal\Core\Template\ComponentsTwigExtension::mergeAdditionalRenderContext()
    attributes:
      type: Drupal\Core\Template\Attribute
      name: Attributes

Steps to reproduce

Proposed resolution

Do some research and update all the components if necessary. We should also let Anand know if this needs to be handled as a special case.

Remaining tasks

  • Research the use of Attributes as seen in the XB component
  • Decide if the code needs to change to align with that (I assume it does but let's check first)
  • If so, let Anand+QED42 know that this is a special case (his script could just ignore these for now or he can update to handle)
  • If so, update all the components in base theme and subtheme to use the new syntax
  • Create MR
  • Review and test
  • Commit :)

User interface changes

Attributes handling will work in XB.

API changes

Data model changes

📌 Task
Status

Fixed

Version

1.0

Component

Code

Created by

🇺🇸United States Kristen Pol Santa Cruz, CA, USA

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024