item-list template doesn't support wrapper_attributes in Olivero or System template

Created on 15 July 2025, 11 days ago

Problem/Motivation

template_preprocess_item_list() says:

> * - wrapper_attributes: HTML attributes to be applied to the list wrapper.

But item-list.html.twig in both system module and olivero don't use this.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

🐛 Bug report
Status

Active

Version

11.0 🔥

Component

system.module

Created by

🇬🇧United Kingdom joachim

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

Comments & Activities

  • Issue created by @joachim
  • 🇦🇺Australia mstrelan

    This is tricky because neither system nor olivero have a wrapping element, so there is nowhere to apply the attributes. Just because they don't use the variable, it doesn't mean that other templates can't, e.g. starterkit_theme, claro and umami. Not sure what to suggest for a proposed resolution, adding a wrapper in the system theme could mess up styles in sites that don't have an overridden template and aren't expecting div soup to be added. Do you have any suggestions?

  • 🇬🇧United Kingdom joachim

    Maybe only conditionally add a wrapper if #wrapper_attributes is specified? If you set #wrapper_attributes, you expect to get a wrapper.

Production build 0.71.5 2024