mirror of
https://github.com/bitwarden/browser
synced 2025-12-15 07:43:35 +00:00
add folder name to aria labels for folder edit buttons (#13648)
This commit is contained in:
@@ -385,6 +385,15 @@
|
|||||||
"editFolder": {
|
"editFolder": {
|
||||||
"message": "Edit folder"
|
"message": "Edit folder"
|
||||||
},
|
},
|
||||||
|
"editFolderWithName": {
|
||||||
|
"message": "Edit folder: $FOLDERNAME$",
|
||||||
|
"placeholders": {
|
||||||
|
"foldername": {
|
||||||
|
"content": "$1",
|
||||||
|
"example": "Social"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"newFolder": {
|
"newFolder": {
|
||||||
"message": "New folder"
|
"message": "New folder"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
slot="end"
|
slot="end"
|
||||||
type="button"
|
type="button"
|
||||||
(click)="openAddEditFolderDialog(folder)"
|
(click)="openAddEditFolderDialog(folder)"
|
||||||
[appA11yTitle]="'editFolder' | i18n"
|
[appA11yTitle]="'editFolderWithName' | i18n: folder.name"
|
||||||
bitIconButton="bwi-pencil-square"
|
bitIconButton="bwi-pencil-square"
|
||||||
class="tw-self-end"
|
class="tw-self-end"
|
||||||
data-testid="edit-folder-button"
|
data-testid="edit-folder-button"
|
||||||
|
|||||||
@@ -281,7 +281,7 @@ export class VaultFilterComponent implements OnInit, OnDestroy {
|
|||||||
},
|
},
|
||||||
action: this.applyFolderFilter,
|
action: this.applyFolderFilter,
|
||||||
edit: {
|
edit: {
|
||||||
text: "editFolder",
|
filterName: this.i18nService.t("folder"),
|
||||||
action: this.editFolder,
|
action: this.editFolder,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -89,7 +89,7 @@
|
|||||||
*ngIf="editInfo && f.node.id"
|
*ngIf="editInfo && f.node.id"
|
||||||
class="edit-button"
|
class="edit-button"
|
||||||
(click)="onEdit(f)"
|
(click)="onEdit(f)"
|
||||||
appA11yTitle="{{ editInfo.text | i18n }}"
|
appA11yTitle="{{ 'editWithName' | i18n: editInfo.filterName : f.node.name }}"
|
||||||
>
|
>
|
||||||
<i class="bwi bwi-pencil bwi-fw" aria-hidden="true"></i>
|
<i class="bwi bwi-pencil bwi-fw" aria-hidden="true"></i>
|
||||||
</button>
|
</button>
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ export type VaultFilterSection = {
|
|||||||
};
|
};
|
||||||
action: (filterNode: TreeNode<VaultFilterType>) => Promise<void>;
|
action: (filterNode: TreeNode<VaultFilterType>) => Promise<void>;
|
||||||
edit?: {
|
edit?: {
|
||||||
text: string;
|
filterName: string;
|
||||||
action: (filter: VaultFilterType) => void;
|
action: (filter: VaultFilterType) => void;
|
||||||
};
|
};
|
||||||
add?: {
|
add?: {
|
||||||
|
|||||||
@@ -491,6 +491,19 @@
|
|||||||
"editFolder": {
|
"editFolder": {
|
||||||
"message": "Edit folder"
|
"message": "Edit folder"
|
||||||
},
|
},
|
||||||
|
"editWithName": {
|
||||||
|
"message": "Edit $ITEM$: $NAME$",
|
||||||
|
"placeholders": {
|
||||||
|
"item": {
|
||||||
|
"content": "$1",
|
||||||
|
"example": "login"
|
||||||
|
},
|
||||||
|
"name": {
|
||||||
|
"content": "$2",
|
||||||
|
"example": "Social"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"newFolder": {
|
"newFolder": {
|
||||||
"message": "New folder"
|
"message": "New folder"
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user