From 6375ca94cdfe27fc617565ef6bba4826d112e740 Mon Sep 17 00:00:00 2001 From: Romeo Fragomeli Date: Wed, 15 Mar 2023 12:16:51 +0000 Subject: [PATCH] [FIX] web: checked menu item in dropdown align on the right Since [1], when a filter dropdown menu is active a check icon is shown but it's positioned over the carret of the dropdown sub-menu (e.g. a date field). After this commit, the CSS rules for [1] are excluded when it's a `o_menu_item` (OWL) to target only Bootstrap dropdown. Steps to reproduce: * Open the Sales app * Filter by the `Create Date` and select a sub option => BUG the check sign is on the right [1]: odoo/odoo@e24bff699190bc511b357c200f4494a177be5b77 closes odoo/odoo#115551 X-original-commit: 965c6cdcdedcc8696f20a27c39273c0a24c941b8 Signed-off-by: Bruno Boi (boi) Signed-off-by: Romeo Fragomeli (rfr) --- addons/web/static/src/core/dropdown/dropdown.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/web/static/src/core/dropdown/dropdown.scss b/addons/web/static/src/core/dropdown/dropdown.scss index e00f73cd502..cfb6d82a119 100644 --- a/addons/web/static/src/core/dropdown/dropdown.scss +++ b/addons/web/static/src/core/dropdown/dropdown.scss @@ -48,7 +48,7 @@ outline: none; box-shadow: none !important; } - &.dropdown-item { + &.dropdown-item:not(.o_menu_item) { &::after, &::before { // Changes the placement of bootstrap dropdown carets for subdropdowns @include o-position-absolute($right: 0, $top: 0);