gin dark mode commerce sidebar display fix
This commit is contained in:
@@ -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:
|
css:
|
||||||
theme:
|
theme:
|
||||||
css/admin-tables.css: {}
|
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) {
|
function materio_admin_page_attachments(array &$attachments) {
|
||||||
if (\Drupal::service('router.admin_context')->isAdminRoute()) {
|
if (\Drupal::service('router.admin_context')->isAdminRoute()) {
|
||||||
$attachments['#attached']['library'][] = 'materio_admin/admin_tables';
|
$attachments['#attached']['library'][] = 'materio_admin/admin_tables';
|
||||||
|
$attachments['#attached']['library'][] = 'materio_admin/gin_darkmode';
|
||||||
$attachments['#attached']['library'][] = 'materio_admin/term_reference_tree';
|
$attachments['#attached']['library'][] = 'materio_admin/term_reference_tree';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user