[FIX] web: Make top bar's menu items navigable when using the keyboard (#23732)
Sidebar's menu items are not currently reachable when using the keyboard, because they are missing the attribute `href`, thus are not indexed for tabbing navigation. This change causes that attribute to be included, so the menu items are reachable and navigable when using the keyboard.
This commit is contained in:
@@ -331,7 +331,7 @@
|
||||
<t t-esc="section.label"/> <span class="caret"/>
|
||||
</button>
|
||||
<t t-if="section.name == 'buttons'" t-foreach="widget.items[section.name]" t-as="item" t-att-class="item.classname">
|
||||
<a t-att-title="item.title or None" t-att-data-section="section.name" t-att-data-index="item_index" t-att-href="item.url" target="_blank">
|
||||
<a t-att-title="item.title or None" t-att-data-section="section.name" t-att-data-index="item_index" t-att-href="item.url or '#'" target="_blank">
|
||||
<t t-raw="item.label"/>
|
||||
</a>
|
||||
</t>
|
||||
@@ -353,7 +353,7 @@
|
||||
<t t-raw="item.write_uid[1]"/> <t t-esc="item.write_date_string"/>
|
||||
</t>
|
||||
</t>
|
||||
<a t-att-title="item.title or None" t-att-data-section="section.name" t-att-data-index="item_index" t-att-href="item.url">
|
||||
<a t-att-title="item.title or None" t-att-data-section="section.name" t-att-data-index="item_index" t-att-href="item.url or '#'">
|
||||
<t t-raw="item.label"/>
|
||||
<span t-if="section.name == 'files' and widget.options.editable and !item.callback" class="fa fa-trash-o o_sidebar_delete_attachment" t-att-data-id="item.id" title="Delete this attachment"/>
|
||||
</a>
|
||||
|
||||
Reference in New Issue
Block a user