From 61f10b27bcbb9f01209946f33be53b5b3f42fdb9 Mon Sep 17 00:00:00 2001 From: Jan-Christoph Borchardt Date: Fri, 29 Sep 2017 20:27:49 +0200 Subject: [PATCH] Improve accessibility of Contacts menu Signed-off-by: Jan-Christoph Borchardt --- core/js/contactsmenu.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/core/js/contactsmenu.js b/core/js/contactsmenu.js index 6d57ae72e6..41de10abb4 100644 --- a/core/js/contactsmenu.js +++ b/core/js/contactsmenu.js @@ -26,6 +26,7 @@ 'use strict'; var MENU_TEMPLATE = '' + + '' + '' + '
' + '
'; @@ -51,7 +52,7 @@ var CONTACT_TEMPLATE = '' + '{{#if contact.avatar}}' + '' + + 'srcset="{{contact.avatar}}&size=32 1x, {{contact.avatar}}&size=64 2x, {{contact.avatar}}&size=128 4x" alt="">' + '{{else}}' + '
' + '{{/if}}' @@ -61,12 +62,12 @@ + '' + '{{#if contact.topAction}}' + '' - + ' ' + + ' {{contact.topAction.title}}' + '' + '{{/if}}' + '{{#if contact.hasTwoActions}}' + '' - + ' ' + + ' {{contact.secondAction.title}}' + '' + '{{/if}}' + '{{#if contact.hasManyActions}}' @@ -76,7 +77,7 @@ + ' {{#each contact.actions}}' + '
  • ' + ' ' - + ' ' + + ' ' + ' {{title}}' + ' ' + '
  • ' @@ -224,7 +225,7 @@ })); this.delegateEvents(); - // Show placeholder iff no avatar is available (avatar is rendered as img, not div) + // Show placeholder if no avatar is available (avatar is rendered as img, not div) this.$('div.avatar').imageplaceholder(this._model.get('fullName')); // Show tooltip for top action