Problem/Motivation

Status messages are not rendered the same way if there are generated by the server or by AJAX requests.

In fact, there is simply no theme for AJAX message, you must override the message.js component.

Steps to reproduce

I figured it out using the masquerade module. When masquerading, the theme's message template is applied, but when unmasquerading, it's the AJAX one (for any reason).

Proposed resolution

We can do the same as Olivero did there : https://www.drupal.org/project/olivero/issues/3165452 (I even took the same title)

Comments

colin.eininger created an issue.