1
0
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:
Jordan Aasen
2026-01-26 12:00:03 -08:00
committed by GitHub
parent 8b9211ea62
commit 5e8801f7ff
3 changed files with 5 additions and 2 deletions

View File

@@ -5001,6 +5001,9 @@
}
}
},
"downloadAttachmentLabel": {
"message": "Download Attachment"
},
"downloadBitwarden": {
"message": "Download Bitwarden"
},

View File

@@ -5,6 +5,6 @@
buttonType="main"
size="small"
type="button"
[label]="'downloadAttachmentName' | i18n: attachment().fileName"
[label]="'downloadAttachmentLabel' | i18n"
></button>
}

View File

@@ -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", () => {