From fb2296adec1fd151397da3b73ed882058f1ecdfc Mon Sep 17 00:00:00 2001 From: "Louis (loco)" Date: Tue, 31 Oct 2023 11:22:39 +0100 Subject: [PATCH] [IMP] *: improve accessibility of website pages *: base_import, gamification, hr_skills, mass_mailing, portal, portal_rating, survey, web, web_editor, website, website_sale, website_slides The goal of this commit is to improve the accessibility of the website pages. This has been made by implementing and correcting ARIA (Accessible Rich Internet Applications) roles and attributes. More precisely: - An `aria-label` attribute has been added on progressbar elements to avoid a warning of type `ARIA progressbar elements do not have accessible names`. It has also been added on iframes to avoid a warning of type ` or + frameborder="0" allowfullscreen="allowfullscreen" aria-label="Video"> diff --git a/addons/website/views/website_templates.xml b/addons/website/views/website_templates.xml index c4f97384267..20105434ec1 100644 --- a/addons/website/views/website_templates.xml +++ b/addons/website/views/website_templates.xml @@ -12,9 +12,10 @@ -
  • +
  • + data-bs-toggle="dropdown" href="#" t-att-data-bs-display="'static' if submenu.is_mega_menu else None" + role="menuitem">
    + t-field="submenu.mega_menu_content" + role="menuitem"/>
      @@ -235,7 +237,7 @@ t-attf-href="/web#menu_id=#{menu['id']}&action=#{menu['action'] and menu['action'].split(',')[1] or ''}"/>
    - Editor + Editor @@ -2086,8 +2088,13 @@ +