Skip to content
Permalink
Browse files

MDL-65087 message: add aria-label to some buttons on bootstrapbase

The aria-label has been added to the settings and search buttons and
also to the starred image displayed when a conversation is favourited.
  • Loading branch information...
sarjona committed Mar 15, 2019
1 parent b185b38 commit bc1d3f2e2a0245b25dddfcff158c7b1a1939df61
@@ -62,7 +62,8 @@
<div class="w-100 text-truncate ml-2">
<div class="d-flex">
<strong class="m-0 text-truncate">{{name}}</strong>
<span class="{{^isfavourite}}hidden{{/isfavourite}} ml-1 text-primary" data-region="favourite-icon-container">
<span class="{{^isfavourite}}hidden{{/isfavourite}} ml-1 text-primary" data-region="favourite-icon-container"
aria-label="{{#str}} favourites, core {{/str}}">
{{#pix}} i/star, core {{/pix}}
</span>
</div>
@@ -61,7 +61,8 @@
<div class="w-100 text-truncate ml-2">
<div class="d-flex">
<strong class="m-0 text-truncate">{{name}}</strong>
<span class="{{^isfavourite}}hidden{{/isfavourite}} ml-1 text-primary" data-region="favourite-icon-container">
<span class="{{^isfavourite}}hidden{{/isfavourite}} ml-1 text-primary" data-region="favourite-icon-container"
aria-label="{{#str}} favourites, core {{/str}}">
{{#pix}} i/star, core {{/pix}}
</span>
</div>
@@ -60,7 +60,8 @@
<div class="w-100 text-truncate ml-2">
<div class="d-flex">
<strong class="m-0 text-truncate">{{name}}</strong>
<span class="{{^isfavourite}}hidden{{/isfavourite}} ml-1 text-primary" data-region="favourite-icon-container">
<span class="{{^isfavourite}}hidden{{/isfavourite}} ml-1 text-primary"
data-region="favourite-icon-container" aria-label="{{#str}} favourites, core {{/str}}">
{{#pix}} i/star, core {{/pix}}
</span>
</div>
@@ -57,6 +57,7 @@
href="#"
data-route="view-settings"
data-route-param="{{loggedinuser.id}}"
aria-label="{{#str}} settings, core_message {{/str}}"
role="button"
>
{{#pix}} t/edit, core {{/pix}}
@@ -62,6 +62,7 @@
class="btn m-0"
type="button"
data-action="search"
aria-label="{{#str}} search, core_search {{/str}}"
>
<span data-region="search-icon-container">
{{#pix}} a/search, core {{/pix}}

0 comments on commit bc1d3f2

Please sign in to comment.
You can’t perform that action at this time.