File and File Managed render elements do not get bootstrap classes

Created on 24 September 2024, 7 months ago

Problem/Motivation

The "file" and "file_managed" do not get bootstrap classes as per Bootstrap Examples. This results in poor styling of the file dialog (not bootstrap like).

Steps to reproduce

add a "file" oder "file_managed" element to your form or use for example a file upload widget somewhere (file field, image field, media).

Proposed resolution

add necessary classes via theme preprocessing
This would also help a bit with 🐛 Media Library styling broken Active by styling the file dialog there too.
This would conflict with 🐛 Checkboxes and radios should conform to Bootstrap examples Active as this MR also uses the preprocess_form_element hook. Either this MR or 🐛 Checkboxes and radios should conform to Bootstrap examples Active MR would have to be changed after the other MR is applied.

Remaining tasks

User interface changes

This is screenshot before:

This is screenshot after:

API changes

Data model changes

🐛 Bug report
Status

Active

Version

4.0

Component

Code

Created by

🇩🇪Germany stefan.korn Jossgrund

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