diff --git a/addons/web/static/src/legacy/scss/dropdown.scss b/addons/web/static/src/legacy/scss/dropdown.scss index e3d0fadb52e..c8e18a22280 100644 --- a/addons/web/static/src/legacy/scss/dropdown.scss +++ b/addons/web/static/src/legacy/scss/dropdown.scss @@ -78,3 +78,36 @@ } } } + +// TODO probably remove those next rules that target dropdown main classes once +// the backend searchbar has been refactored to use OWL dropdown components and +// to stop using the BS4 "focus" class which is not part of BS5 anymore. +// See the commit that introduced this comment for more details. + +.dropdown-menu { + .dropdown-toggle:focus, .dropdown-item:focus { + background-color: transparent; + outline: none; + } + .dropdown-toggle.focus, .dropdown-item.focus { + background-color: $dropdown-link-hover-bg; + } +} + +.dropdown-item:not(.disabled):not(:disabled) { + cursor: pointer; +} + +button.dropdown-toggle { + &.active, &:hover, &:focus, &:active { + outline: none; + box-shadow: none !important; + } + &.dropdown-item { + &::after, &::before { + // Changes the placement of bootstrap dropdown carets for subdropdowns + @include o-position-absolute($right: 0, $top: 0); + transform: translate(-.6em, .6em) #{"/*rtl:translate(.6em, .6em) scaleX(-1)*/"}; + } + } +}