mirror of
https://github.com/bitwarden/browser
synced 2026-02-17 18:09:17 +00:00
[PM-29244] - don't use filename for download attachment label (#18444)
* don't use filename for download attachment label
* fix scroll position in browser vault
* Revert "fix scroll position in browser vault"
This reverts commit 8e415f2c89.
* fix test
This commit is contained in:
@@ -5001,6 +5001,9 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"downloadAttachmentLabel": {
|
||||
"message": "Download Attachment"
|
||||
},
|
||||
"downloadBitwarden": {
|
||||
"message": "Download Bitwarden"
|
||||
},
|
||||
|
||||
@@ -5,6 +5,6 @@
|
||||
buttonType="main"
|
||||
size="small"
|
||||
type="button"
|
||||
[label]="'downloadAttachmentName' | i18n: attachment().fileName"
|
||||
[label]="'downloadAttachmentLabel' | i18n"
|
||||
></button>
|
||||
}
|
||||
|
||||
@@ -108,7 +108,7 @@ describe("DownloadAttachmentComponent", () => {
|
||||
it("renders delete button", () => {
|
||||
const deleteButton = fixture.debugElement.query(By.css("button"));
|
||||
|
||||
expect(deleteButton.attributes["aria-label"]).toBe("downloadAttachmentName");
|
||||
expect(deleteButton.attributes["aria-label"]).toBe("downloadAttachmentLabel");
|
||||
});
|
||||
|
||||
describe("download attachment", () => {
|
||||
|
||||
Reference in New Issue
Block a user