diff --git a/mail/base/content/mailWidgets.xml b/mail/base/content/mailWidgets.xml index 4c22562304..20bfbc7cba 100644 --- a/mail/base/content/mailWidgets.xml +++ b/mail/base/content/mailWidgets.xml @@ -308,6 +308,12 @@ aEmailNode.setAttribute("fullAddress", aAddress.fullAddress); aEmailNode.setAttribute("displayName", aAddress.displayName); + // Add aria-label with header field type and header field content + // for better accessibility + var ariaLabel = this.getAttribute("label") + ": " + + aEmailNode.getAttribute("label"); + aEmailNode.setAttribute("aria-label", ariaLabel); + try { if ("AddExtraAddressProcessing" in top) @@ -489,7 +495,7 @@