From 1b71ab41afbf7b4749dada23387ae9bdc5368714 Mon Sep 17 00:00:00 2001 From: labo-odoo Date: Fri, 12 Apr 2024 16:16:37 +0200 Subject: [PATCH] [FIX] web: name of the selected example should be in white Steps to reproduce the issue: ---------------------------- 1. Enable dark mode 2. Go to Project app 3. Create a new project 4. Click on `See examples` in the kanban 5. Select an example. Actual Behavior: --------------- The name of the selected example is in black instead of white. Expected Behavior: ----------------- The name of the selected example should be in white. Solution: -------- Update the font color of the selected example name to white for better contrast in dark mode. task-3602610 closes odoo/odoo#162133 X-original-commit: 60d1580d4bc493c2572ac7c223df3c72f53873bd Signed-off-by: Pierre Paridans (app) --- .../web/static/src/views/kanban/kanban_examples_dialog.scss | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/addons/web/static/src/views/kanban/kanban_examples_dialog.scss b/addons/web/static/src/views/kanban/kanban_examples_dialog.scss index 0332f978c6f..a1922e93559 100644 --- a/addons/web/static/src/views/kanban/kanban_examples_dialog.scss +++ b/addons/web/static/src/views/kanban/kanban_examples_dialog.scss @@ -12,8 +12,9 @@ // sidebar .nav-link.active { - background-color: #{$o-brand-primary}; - color: $white; + $o-btn-primary-theme-colors: map-get($o-btns-bs-override, "primary"); + background-color: map-get($o-btn-primary-theme-colors, "background"); + color: map-get($o-btn-primary-theme-colors, "color"); &, &:hover, &:focus, &:active { border-right-color: var(--notebook-link-border-color-active); }