Add data attribute to support JavaScript Messages API

Created on 12 August 2022, almost 2 years ago
Updated 1 November 2023, 8 months ago

Problem/Motivation

A new JavaSrcript Messages API was introduced in Drupal 8.7. In order for themes to support this the status-messages.html.twig template markup must be wrapped in a div β†’ with the data-drupal-messages attribute applied.

This theme currently does not have the required attribute.

Steps to reproduce

  1. Compare suggested markup at https://www.drupal.org/node/2935209 β†’ to the current status-messages.html.twig markup.

Proposed resolution

Wrap the markup in status-messages.html.twig in a <div data-drupal-messages> element.

Remaining tasks

  1. Create patch.

User interface changes

N/A

API changes

N/A

Data model changes

N/A

✨ Feature request
Status

Fixed

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States PCate

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024