mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-01 08:42:13 +00:00
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:
parent
ef6d06a1b6
commit
b6e7b6f601
@ -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");
|
||||
|
@ -73,6 +73,11 @@ markupView.display.contents.tooltiptext2=This element doesn’t 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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user