diff options
| author | David Monjoie <dmo@odoo.com> | 2019-03-25 15:29:32 +0000 |
|---|---|---|
| committer | Aaron Bohy <aab@odoo.com> | 2019-04-02 11:57:00 +0000 |
| commit | 8ea5a40417c2da2e82db66ad36fbf1e8e78bbe11 (patch) | |
| tree | 1233647e18260747f3fd315f79f4cae8b06bc0f6 /addons/web/static/src/scss | |
| parent | ca19b17fd3e09d2f4e53208542f4356d3a6ee25a (diff) | |
[IMP] web: list: directional keys navigation in readonly
With this rev., it is now possible to navigate with arrows in list
views (except when editing, as in this case hitting the arrows moves
the cursor in the input/textarea), and to expand/collapse groups
with keyboard navigation.
Part of task 1915702
Diffstat (limited to 'addons/web/static/src/scss')
| -rw-r--r-- | addons/web/static/src/scss/list_view.scss | 8 | ||||
| -rw-r--r-- | addons/web/static/src/scss/list_view_extra.scss | 4 |
2 files changed, 10 insertions, 2 deletions
diff --git a/addons/web/static/src/scss/list_view.scss b/addons/web/static/src/scss/list_view.scss index 16f14f3717e..07da78731f3 100644 --- a/addons/web/static/src/scss/list_view.scss +++ b/addons/web/static/src/scss/list_view.scss @@ -136,11 +136,15 @@ border-top: none; // Override bootstrap for grouped list views } - tbody { + &, &.table-striped { tr:focus-within { - background-color: $o-form-lightsecondary; + background-color: lighten($o-form-lightsecondary, 10%); } } + thead th:focus-within, tbody td:focus-within { + background-color: $o-form-lightsecondary; + outline: none; + } .o_data_cell.o_text_overflow, .o_data_cell.o_invisible_modifier { diff --git a/addons/web/static/src/scss/list_view_extra.scss b/addons/web/static/src/scss/list_view_extra.scss index 83791ce42dd..7532ec2084f 100644 --- a/addons/web/static/src/scss/list_view_extra.scss +++ b/addons/web/static/src/scss/list_view_extra.scss @@ -6,5 +6,9 @@ tbody > tr.o_group_header { background-image: linear-gradient(to bottom, #fcfcfc, #dedede); + + &:focus-within { + background-image: linear-gradient(to bottom, #fcfcfc, $o-form-lightsecondary); + } } } |
