Commerce order admin template <details> broken styling

Created on 18 March 2021, over 3 years ago
Updated 10 June 2024, 4 months ago

Describe your bug or feature request.

In commerce-order--admin.html.twig all <details> classes are written to work with the seven theme (ie. seven-details, seven-details__summary).

I' m using the Claro as administration theme and, on the admin order page, all sidebar <details> (Customer Information - Billing Information etc.) haven' t the appropriate styles.

If a bug, provide steps to reproduce it from a clean install.

  1. Set Claro as Administration theme
  2. Visit admin/commerce/orders/(order id)

I solved the issue with this patch. It contains these changes:
1) Passes the machine name of the current theme to commerce order templates.
2) Replaces old classes (seven-details etc.) with the current_theme_name variable ({{ current_theme_name }}-details etc.).

🐛 Bug report
Status

Fixed

Version

2.0

Component

Order

Created by

🇬🇷Greece balis_m

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

Merge Requests

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.71.5 2024