Dropdown text color overridden when setting navbar background (web_company_color)

Aperta
#3,362 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
javascript, scss
Ambito
frontend, web-dev

Direzione di ricerca

Start in web_company_color and inspect custom_colors.1.gen.scss around line 110 to trace how the navbar color settings affect .dropdown-item. Check the color picker entry points to understand how selected colors are stored and cleared. Done when navbar dropdown text retains its intended color and a chosen color can be cleared; the issue has had no comment for 233 days, so confirm someone will respond before starting.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug

Steps to reproduce
1. Set Navbar Background color = #71639e
2. Set Navbar Background Hover color = #695c93
3. Save and reload the page

Current behavior
• The dropdown menu items change color unexpectedly.
• Specifically, the rule at line 110 in custom_colors.1.gen.scss sets:

.dropdown-item {
    color: #374151 !important;
}

This rule overrides the default (white) color of the dropdown text in the navbar, resulting in poor contrast and readability.

Expected behavior
• Dropdown items in the navbar should keep their original text color (white), or at least not be overridden by the color customization.
• The color rule should not apply to dropdowns inside the navbar.

Technical notes
The offending rule appears in custom_colors.1.gen.scss (line 110):

 .dropdown-item {
     color: #374151 !important;
 }

Additional issue
Once a color is set via the color picker, it cannot be unset or cleared (to revert to default behavior). There should be a way to remove a chosen color.

Environment
• Odoo version: 17.0
• Module: web_company_color
• Browser: Chrome / Firefox (any)
• Operating system: macOS

Summary:
The .dropdown-item { color: #374151 !important; } rule unintentionally overrides navbar dropdown text color when custom navbar colors are set.
Also, the color picker lacks an option to unset colors once defined.

Thanks in advance for taking a look! 🙏

Lingua principale
JavaScript
Stelle
1.2k
Fork
2.2k
Merge medio
3g 15h
PR unite (30g)
30

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di OCA/web

Tutte le issue di OCA/web

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.