navigation:toolbar-button sdc missing attributes

Created on 19 November 2024, about 1 month ago

Problem/Motivation

Drupal\Core\Render\Component\Exception\InvalidComponentException: [attributes] String value found, but an object is required in Drupal\Core\Theme\Component\ComponentValidator->validateProps() (line 203 of core/lib/Drupal/Core/Theme/Component/ComponentValidator.php).

Steps to reproduce

Fresh drupal with new navigation and ui_patterns module. Not sure why it doesn't trow without ui_patterns.

In core/modules/navigation/layouts/navigation.html.twig there is an include to the sdc. Attributes are passed, but there are no attributes defined on the sdc:
core/modules/navigation/components/toolbar-button/toolbar-button.component.yml

Proposed resolution

add attributes to core/modules/navigation/components/toolbar-button/toolbar-button.component.yml

🐛 Bug report
Status

Active

Version

11.0 🔥

Component

navigation.module

Created by

🇩🇪Germany woldtwerk Stralibu

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