Incorrect display of message when validating uploaded files using Gin Admin Theme

Created on 6 June 2024, 6 months ago
Updated 18 June 2024, 5 months ago

Problem/Motivation

The message does not display correctly when validating uploaded files.
The message is supposed to be displayed in $form['#prefix'].
https://git.drupalcode.org/project/drupal/-/blob/10.2.6/core/modules/fil...

However, this property doesn't allow certain HTML tags, such as the button tag.

Steps to reproduce

1. Set a maximum upload size.

2. Upload a file that has a size greater than the set maximum upload size.
3. The displayed message is incorrect.

Proposed resolution

Should we create an issue with the Drupal core?
Currently, I have to create a patch for core like this

    $status_messages = ['#type' => 'status_messages'];
    $output = $renderer->renderRoot($status_messages) . $renderer->renderRoot($form);
  

Should we replace the button tag in the message template with another tag?"

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Closed: works as designed

Version

3.0

Component

User interface

Created by

🇻🇳Vietnam doidd

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

Comments & Activities

Production build 0.71.5 2024