1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-24 12:06:15 +01:00

add missing accessibility titles

This commit is contained in:
Kyle Spearrin 2017-11-23 22:15:51 -05:00
parent 388a65f25f
commit 634aa43694
7 changed files with 17 additions and 6 deletions

View File

@ -965,5 +965,8 @@
},
"favorites": {
"message": "Favorites"
},
"popOutNewWindow": {
"message": "Pop out to a new window"
}
}

View File

@ -4,8 +4,10 @@ export class CipherItemsController implements ng.IController {
onSelected: Function;
onView: Function;
constructor(private i18nService: any) {
i18n: any;
constructor(private i18nService: any) {
this.i18n = i18nService;
}
view(cipher: any) {

View File

@ -1 +1,3 @@
<a href="" ng-click="$ctrl.expand()"><i class="fa fa-external-link fa-rotate-270 fa-lg"></i></a>
<a href="" ng-click="$ctrl.expand()" title="{{::$ctrl.i18n.popOutNewWindow}}">
<i class="fa fa-external-link fa-rotate-270 fa-lg"></i>
</a>

View File

@ -3,7 +3,11 @@ import * as template from './pop-out.component.html';
import { UtilsService } from '../../../services/abstractions/utils.service';
export class PopOutController implements ng.IController {
constructor(private $analytics: any, private $window: any, private utilsService: UtilsService) {
i18n: any;
constructor(private $analytics: any, private $window: any, private utilsService: UtilsService,
private i18nService: any) {
this.i18n = i18nService;
}
expand() {

View File

@ -8,7 +8,7 @@
<i class="fa fa-search"></i>
</div>
<div class="right">
<a href="" ng-click="$ctrl.addCipher()"><i class="fa fa-plus fa-lg"></i></a>
<a href="" ng-click="$ctrl.addCipher()" title="{{::$ctrl.i18n.addItem}}"><i class="fa fa-plus fa-lg"></i></a>
</div>
</div>
<div class="content content-tabs">

View File

@ -5,7 +5,7 @@
<i class="fa fa-search"></i>
</div>
<div class="right">
<a href="" ng-click="addCipher()"><i class="fa fa-plus fa-lg"></i></a>
<a href="" ng-click="addCipher()" title="{{::i18n.addItem}}"><i class="fa fa-plus fa-lg"></i></a>
</div>
</div>
<div class="content content-tabs">