From 33f0e8a4ff79e57254fc94ba5307790b07891bc9 Mon Sep 17 00:00:00 2001 From: kujiu Date: Fri, 22 Jun 2018 21:27:40 +0200 Subject: [PATCH] [IMP] Improve compatibility with screen readers (accessibility) (#2146) Today, Odoo is really tricky to use without seeing the screen, it must be improved to be usable. This PR forbid to use labels without a "for" attribute, add some title, rule and aria attributes in HTML. With that, Odoo will be fully usable with a screen reader. * [IMP] Labels must have a for attribute. Improve accessibility. * [FIX] Update some title attributes for a11y. * [IMP] Add aria-labels * [IMP] aria-hidden means hidden. Fix all bad aria-hidden and hide aria-hidden for all. * [IMP] Color names on kanban views * [IMP] Add 'alt' attribute on 'img' tags * [IMP] Add aria-label and title on icons. * [IMP] Add dialog role on modals. * [IMP] Remove wrong aria-labelledby * [IMP] Add menu role on dropdowns * [IMP] Buttons must be focusable * [IMP] Change main layout to more semantic tags * [IMP] Add menuitem role when missing * [IMP] Remove wrong role='presentation' * [IMP] Improve accessibility of tab panels * [IMP] Add role on alerts * [IMP] Add role="button" on simili buttons * [IMP] Use dialog role, header, main and footer tags for modals * [FIX] Set all tabs aria-selected since we don't have proper script to set the attribute correctly. * [IMP] Add widget, navigation or img role to aria-labelled items --- report/sale_coupon_report_templates.xml | 4 ++-- views/sale_coupon_program_views.xml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/report/sale_coupon_report_templates.xml b/report/sale_coupon_report_templates.xml index 9cbc4c51820..0305cd3cdae 100644 --- a/report/sale_coupon_report_templates.xml +++ b/report/sale_coupon_report_templates.xml @@ -52,11 +52,11 @@
- + Barcode
- + Logo
-