Bug 33391

Summary: Currently active menu item on navmenulist should not change style on hover
Product: Koha Reporter: Pedro Amorim <pedro.amorim>
Component: Staff interfaceAssignee: Pedro Amorim <pedro.amorim>
Status: CLOSED FIXED QA Contact: Testopia <testopia>
Severity: minor    
Priority: P5 - low CC: gmcharlt, jacob.omara, jonathan.druart, lucas, martin.renvoize, oleonard
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
23.05.00,22.11.05
Bug Depends on: 30952, 33381    
Bug Blocks:    
Attachments: Bug 33391: Prevent applying hover style on navmenulist currently active item
Bug 33391: Prevent applying hover style on navmenulist currently active item
Bug 33391: Prevent applying hover style on navmenulist currently active item

Description Pedro Amorim 2023-04-01 14:48:14 UTC
If you go to system preferences with "Accounting" menu item active:
/cgi-bin/koha/admin/preferences.pl?tab=accounting
Hover on it, you'll see no difference (that's the intended behaviour)

Now go to cataloging tools - inventory with "Inventory" menu item active:
/cgi-bin/koha/tools/inventory.pl
Hover on it, you'll see the :hover is style is overriding the .current style, resulting in jumpy behaviour with bold->normal font-size.
This is happening in other places (ERM side menu, others).
Comment 1 Pedro Amorim 2023-04-01 14:51:39 UTC
Created attachment 149062 [details] [review]
Bug 33391: Prevent applying hover style on navmenulist currently active item

* Apply patch
* Run yarn css:build
* Do the 2nd example above again and verify
Comment 2 Lucas Gass 2023-04-03 14:38:00 UTC
Created attachment 149097 [details] [review]
Bug 33391: Prevent applying hover style on navmenulist currently active item

* Apply patch
* Run yarn css:build
* Do the 2nd example above again and verify

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Comment 3 Jonathan Druart 2023-04-04 07:23:04 UTC
I am wondering if we should not fix bug 33381 before this one. For instance the problem still appear on /erm/agreements/add
Comment 4 Jonathan Druart 2023-04-06 07:22:38 UTC
Created attachment 149226 [details] [review]
Bug 33391: Prevent applying hover style on navmenulist currently active item

* Apply patch
* Run yarn css:build
* Do the 2nd example above again and verify

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Comment 5 Tomás Cohen Arazi 2023-04-06 12:52:42 UTC
Pushed to master for 23.05.

Nice work everyone, thanks!
Comment 6 Jacob O'Mara 2023-04-16 20:38:40 UTC
Nice work, thanks everyone!

Pushed to 22.11.x for the next release.
Comment 7 Lucas Gass 2023-05-05 21:34:04 UTC
Not needed in 22.05.x, no backport.