Bug 1439920 - Add a spoken label to the New Attribute button when editing a tag in the HTML inspector, r=gl

MozReview-Commit-ID: 5jcxLuof7GL

--HG--
extra : rebase_source : 7916117344792ceb0303c5b82c190f122531f456
This commit is contained in:
Marco Zehe 2018-02-24 16:00:15 +01:00
parent ef6d06a1b6
commit b6e7b6f601
2 changed files with 7 additions and 0 deletions

View File

@ -150,6 +150,8 @@ ElementEditor.prototype = {
this.newAttr = this.doc.createElement("span");
this.newAttr.classList.add("newattr");
this.newAttr.setAttribute("tabindex", "-1");
this.newAttr.setAttribute("aria-label",
INSPECTOR_L10N.getStr("markupView.newAttribute.label"));
open.appendChild(this.newAttr);
let closingBracket = this.doc.createElement("span");

View File

@ -73,6 +73,11 @@ markupView.display.contents.tooltiptext2=This element doesnt produce a specif
# the markup view.
markupView.event.tooltiptext=Event listener
# LOCALIZATION NOTE (markupView.newAttribute.label)
# This is used to speak the New Attribute button when editing a tag
# and a screen reader user tabs to it. This string is not visible onscreen.
markupView.newAttribute.label=New attribute
#LOCALIZATION NOTE: Used in the image preview tooltip when the image could not be loaded
previewTooltip.image.brokenImage=Could not load the image