[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.
Showing
- addons/web/static/src/js/views/list/list_editable_renderer.js 2 additions, 1 deletion...ns/web/static/src/js/views/list/list_editable_renderer.js
- addons/web/static/src/less/list_view.less 8 additions, 0 deletionsaddons/web/static/src/less/list_view.less
- addons/web/static/tests/fields/relational_fields_tests.js 10 additions, 10 deletionsaddons/web/static/tests/fields/relational_fields_tests.js
- odoo/addons/test_new_api/static/tests/x2many.js 1 addition, 1 deletionodoo/addons/test_new_api/static/tests/x2many.js
Loading
Please register or sign in to comment