Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion addons/web/static/src/core/debug/debug_menu.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<Dropdown class="o_debug_manager"
beforeOpen="beforeOpenDropdown"
t-on-dropdown-item-selected.stop="onDropdownItemSelected"
menuClass="'o_dropdown_menu_right'">
togglerClass="'btn btn-light'">
<span class="fa fa-bug"/>
<t t-set-slot="menu">
<t t-foreach="getElements()" t-as="element" t-key="element_index">
Expand Down
25 changes: 15 additions & 10 deletions addons/web/static/src/core/dropdown/dropdown.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Default Boostrap Classes customizations
//------------------------------------------------------------------------------
// = Default Boostrap Classes customizations
// ----------------------------------------------------------------------------
.dropdown-menu {
min-width: 100%;
max-height: 90vh;
Expand Down Expand Up @@ -34,7 +34,9 @@
}

&.disabled a, &:disabled a {
@include o-hover-text-color($dropdown-link-disabled-color, $dropdown-link-disabled-color);
@include o-hover-text-color(
$dropdown-link-disabled-color,
$dropdown-link-disabled-color);
}
}

Expand All @@ -48,20 +50,23 @@
}

.dropdown-item-text {
// Commonly used in to wrap forms into dropdown menus.
// Specify a reasonable minimum-width to avoid inner elements
// to overlap each other.
// Commonly used in to wrap forms into dropdown menus. Specify a reasonable
// minimum-width to avoid that inner elements overlap each other.
min-width: 15rem;
}

.dropdown-divider:first-child {
display: none;
}

.o_rtl {
.dropdown-menu {
@extend .dropdown-menu-right;
}
}

// Extend Owl custom classes to visually match Boostrap ones
//------------------------------------------------------------------------------
// = Extend Owl custom classes to visually match Boostrap ones
// ----------------------------------------------------------------------------
.o_dropdown {
@extend .dropdown;

Expand All @@ -82,8 +87,8 @@
}
}

// Owl components specific rules
//------------------------------------------------------------------------------
// = Owl components specific rules
// -----------------------------------------------------------------------------
.o_dropdown_item:not(.disabled):not(:disabled) {
// Needed 'cause <DropdownItem> generate <li> html tags that for browsers are
// normally not clickable.
Expand Down
12 changes: 9 additions & 3 deletions addons/web/static/src/legacy/scss/dropdown.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
.ui-widget.ui-autocomplete { // Copy style of bootstrap dropdown
// = jQueryUI dropdown adaptations
// ----------------------------------------------------------------------------
.ui-widget.ui-autocomplete {
@extend .dropdown-menu;
top: 0; // Necessary to correctly compute the initial position
min-width: 0; // Necessary to correctly compute the initial width
top: 0; // Compute initial position
min-width: 0; // Compute initial width

// Needed because .ui-widget are rendered at a
// lower stacking contex compared to modals.
z-index: $zindex-modal + 1;

.ui-menu-item {
padding: 0;
Expand Down
3 changes: 2 additions & 1 deletion addons/web/static/src/legacy/scss/navbar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
background: $-backend-entry-hover-bg;
outline: 1px solid $o-navbar-inverse-link-hover-bg;
outline-offset: -1px;
color: $white;
}
}

Expand All @@ -76,7 +77,7 @@

// = Owl <Dropdown> components
// --------------------------------------------------------------------------
.o_dropdown_toggler {
.o_dropdown .o_dropdown_toggler {
@extend %-main-navbar-entry-base;
@extend %-main-navbar-entry-padding;
@extend %-main-navbar-entry-bg-hover;
Expand Down
7 changes: 6 additions & 1 deletion addons/web/static/tests/legacy/views/pivot_tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -2690,7 +2690,12 @@ QUnit.module('Views', {
View: PivotView,
model: "partner",
data: this.data,
arch: `<pivot/>`,
// have at least a measure to have a separator in the Measures dropdown:
//
// Foo
// -----
// Count
arch: `<pivot><field name="foo" type="measure"/></pivot>`,
});

// open the "Measures" menu
Expand Down