From 1316dc53ab1e171f6ff9d82285a820239ad5d322 Mon Sep 17 00:00:00 2001 From: "stefanorigano (SRI)" Date: Tue, 7 Sep 2021 06:22:08 +0000 Subject: [PATCH] [FIX] web: correctly target 'o_dropdown_item' child Partially revert b0c325 removing rules defining '' children as exceptions. Indeed, to have a child wrapping the entry's content (either or ) is now considered the norm. This commit will extend bootstrap 'dropdown-item' design to any 'o_dropdown_item' child rather than on 'o_dropdown_item' itself. Part-of: odoo/odoo#73311 --- addons/web/static/src/core/dropdown/dropdown.scss | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/addons/web/static/src/core/dropdown/dropdown.scss b/addons/web/static/src/core/dropdown/dropdown.scss index 7cbacae0411..b77fd883020 100644 --- a/addons/web/static/src/core/dropdown/dropdown.scss +++ b/addons/web/static/src/core/dropdown/dropdown.scss @@ -122,6 +122,14 @@ } } + &_item > *:first-child:last-child { + @extend .dropdown-item; + } + + &_item.o_dropdown_active > *:first-child:last-child { + @extend .dropdown-item:hover; + } + &_menu_group { @extend .dropdown-header; }