gin dark mode commerce sidebar display fix

This commit is contained in:
2026-09-30 16:27:42 +02:00
parent 1abaa040f9
commit d733b99ae5
3 changed files with 15 additions and 0 deletions
@@ -0,0 +1,8 @@
/**
* Gin dark mode: entity-meta sidebars are styled by Claro light tokens
* outside gin's node-form scope (commerce license/order/product forms).
* Re-apply gin's text color so the sidebar stays readable in dark mode.
*/
html.gin--dark-mode .entity-meta__header {
color: var(--gin-color-text, #fbfbfe);
}
@@ -9,3 +9,9 @@ admin_tables:
css:
theme:
css/admin-tables.css: {}
gin_darkmode:
version: 1.0
css:
theme:
css/gin-darkmode.css: {}
@@ -22,6 +22,7 @@
function materio_admin_page_attachments(array &$attachments) {
if (\Drupal::service('router.admin_context')->isAdminRoute()) {
$attachments['#attached']['library'][] = 'materio_admin/admin_tables';
$attachments['#attached']['library'][] = 'materio_admin/gin_darkmode';
$attachments['#attached']['library'][] = 'materio_admin/term_reference_tree';
}
}