summaryrefslogtreecommitdiff
path: root/addons/web/static/src/less
diff options
context:
space:
mode:
authorLuis González <lgonzalez@vauxoo.com>2018-03-22 07:18:35 -0400
committerkujiu <kujiu@users.noreply.github.com>2018-03-22 12:18:35 +0100
commitef540eb006abac0d318f2a708384d125f6203662 (patch)
tree0cf133f93d87cd6a2f2b6eb138f87e0b36ac8885 /addons/web/static/src/less
parentac76a6b40cace06c63c049be0ae9e58721048473 (diff)
[FIX] web: Make accessible with keyboard the delete button on o2m fields (#23719)
* [FIX] web: Make accessible with keyboard the delete button on o2m fields Currently, the delete button in one2many fields (trash icon) is not reachable when using the keyboard, because it's neither a link, nor a button or any other interactable HTML element, but a `<span>`. This change causes that button to be an actual HTML button keeping the same appearance, so it may be reached when using the keyboard. * [FIX] web: Modify test to expect button instead of span as o2m trash icon Since buttons to delete records in o2m fields (the trash icon) were changed from `<span>` to `<button>` to be able to access them with the keyboard, the test need to be modified so it expect the new element type and doesn't break.
Diffstat (limited to 'addons/web/static/src/less')
-rw-r--r--addons/web/static/src/less/list_view.less8
1 files changed, 8 insertions, 0 deletions
diff --git a/addons/web/static/src/less/list_view.less b/addons/web/static/src/less/list_view.less
index 395bf633e45..0948b566e62 100644
--- a/addons/web/static/src/less/list_view.less
+++ b/addons/web/static/src/less/list_view.less
@@ -70,6 +70,14 @@
width: 1px; // to prevent the column to expand
}
+ .o_list_record_delete_btn {
+ padding: 0px;
+ background-style: none;
+ border-style: none;
+ height: 0px;
+ display: table-cell;
+ }
+
// Decoration of the row
.text-bf {
font-weight: bold;