Skip to content

style: Handle sections in submenus

Florian Müllner requested to merge fmuellner/gnome-shell:less-rounding into main

If a menu item in a submenu is part of a section, it should have rounded bottom corners if both the item and the section are the last child of its respective parent.

To express that, add a new .popup-menu-section class and use that to undo/redo the rounding for items inside a section.

It would be possible to do without a new class with a selector like

StBoxLayout > .popup-menu-item:last-child:hover, :last-child > .popup-menu-item:last-child:hover

but that's hardly better with its heavy reliance on implementation details.

Fixes #4940 (closed)

Merge request reports