diff --git a/addons/web/static/src/core/dropdown/dropdown.scss b/addons/web/static/src/core/dropdown/dropdown.scss index f250c5de02c..3a059e39ac8 100644 --- a/addons/web/static/src/core/dropdown/dropdown.scss +++ b/addons/web/static/src/core/dropdown/dropdown.scss @@ -5,6 +5,12 @@ // Makes sure the dropdown menus are already in a // fixed position before the positioning computations begin. position: fixed; + margin-top: var(--Dropdown_menu-margin-y, #{map-get($spacers, 1)}); + margin-bottom: var(--Dropdown_menu-margin-y, #{map-get($spacers, 1)}); + + &.o-dropdown--menu-submenu { + --Dropdown_menu-margin-y: 0; + } .dropdown-toggle:focus, .dropdown-item:focus { background-color: transparent; diff --git a/addons/web/static/src/core/dropdown/dropdown.xml b/addons/web/static/src/core/dropdown/dropdown.xml index dbcd24aff1b..c1e0c413fb2 100644 --- a/addons/web/static/src/core/dropdown/dropdown.xml +++ b/addons/web/static/src/core/dropdown/dropdown.xml @@ -33,7 +33,11 @@