Bug 31919: Add backgground color to hovered items in header dropdowns
authorOwen Leonard <oleonard@myacpl.org>
Thu, 27 Oct 2022 11:27:55 +0000 (13:27 +0200)
committerTomas Cohen Arazi <tomascohen@theke.io>
Fri, 4 Nov 2022 22:17:00 +0000 (19:17 -0300)
commit07fa7ccf31a8bb7f4da1a5e499851957c93eff53
tree3e56095f1bdc0d92eea127cf3a2e8eb22fc5108f
parentd30c6dcb7f245f66f052c27bada39ec6ef5df5ca
Bug 31919: Add backgground color to hovered items in header dropdowns

This alternate patch is different in a few ways:

- Add a hover background color only to items in dropdown menus.
- Use an SCSS variable for the background color
- Update the specificity of the hover CSS to more fully override
  Bootstrap's default.

To test, apply the patch and rebuild the staff interface CSS.

- On any page in the staff interface, test the behavior of links in the
  nav header.
- The always-visible links (Circulation, Patrons, etc) should keep the
  same style as before: Underline on hover.
- In dropdown menus like "More" and the user menu in the upper right
  corner, hovered links should have a green background.

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
koha-tmpl/intranet-tmpl/prog/css/src/_header.scss