summaryrefslogtreecommitdiff
path: root/addons/web/static/src/scss
diff options
context:
space:
mode:
authorAaron Bohy <aab@odoo.com>2019-04-04 11:50:01 +0000
committerAaron Bohy <aab@odoo.com>2019-04-12 06:14:08 +0000
commitd43624b5c52bc0b5bd8b6bb36f2a828ff9cbd3eb (patch)
tree141bc107ce193171079fcb36ceab89dbe5807b09 /addons/web/static/src/scss
parentd971e4f4c7dfe0bba60828948174a399e4ebc4d3 (diff)
[FIX] web: list: execute group button with keyboard navigation
Recent work on the list view allowed to add buttons in group headers (see 015958dc17). However, we couldn't execute the action of the button by pressing Enter, because the Enter keydown was stopPropagated by another handler (folding the group). This rev. makes this work, and also improves a bit the style of the buttons in group headers. Task 1915702
Diffstat (limited to 'addons/web/static/src/scss')
-rw-r--r--addons/web/static/src/scss/list_view.scss3
1 files changed, 3 insertions, 0 deletions
diff --git a/addons/web/static/src/scss/list_view.scss b/addons/web/static/src/scss/list_view.scss
index 86b989dbd10..45744a7a1f8 100644
--- a/addons/web/static/src/scss/list_view.scss
+++ b/addons/web/static/src/scss/list_view.scss
@@ -97,6 +97,7 @@
// Grouped list views
tbody > tr.o_group_header {
> th, > td {
+ vertical-align: middle;
padding-top: ($table-cell-padding-sm*2);
padding-bottom: ($table-cell-padding-sm*2);
}
@@ -105,8 +106,10 @@
}
.o_group_buttons {
display: inline-block;
+ margin-left: 10px;
> button {
+ @include o-hover-text-color($o-brand-primary, darken($o-brand-primary, 20%));
background-color: transparent;
border: none;
padding-top: 0;