Loading...
 
Skip to main content

Navbar color toggle can cause conflicting navbar color preferences

Status
Open
Subject
Navbar color toggle can cause conflicting navbar color preferences
Version
24.x
Category
  • Conflict of two features (each works well independently)
Feature
Admin Interface (UI)
Menu
Theme: Look & feel, Styles, CSS, Theme Control Center
Resolution status
New
Submitted by
Gary Cunningham-Lee
Lastmod by
Gary Cunningham-Lee
Rating
(0)
Description

There are two ways to specify navbar foreground and background colors: the "Navbar background color" checkboxes on the admin Look and Feel page and the "CSS class(es) for the menu nav element" on the admin-modules page. The Look and Feel checkbox value is used in all cases, though, so if that preference is set to "Dark", for example, to get a dark-background navbar for the main navigation, then every navbar instance assigned on the admin-modules page gets the CSS classes for "Dark". This causes a problem if, for example, a Light-background system menu is wanted in the footer. Then the CSS classes for the navbar are "navbar-light bg-light navbar-dark bg-dark". In my test, this caused light text on light background, so it's unreadable.

Unless I'm missing something, I think it would be good if the navbar color switch on the Look and Feel admin page was removed and the navbar color specified by the module only (maybe using a checkbox or radio buttons instead of inputting the class names as is required now), or else make the L&F switch apply only to the admin interface. This would be similar to moving the setting of the site logo and title from Look and Feel to the module admin page.

Importance
8
Easy to solve?
5
Priority
40
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
8003
Created
Wednesday 22 December, 2021 16:20:11 UTC
by Gary Cunningham-Lee
LastModif
Wednesday 22 December, 2021 16:21:08 UTC


Show PHP error messages