Bug 1573362 - update links for the text label checks documentation. r=mtigley
authorYura Zenevich <yura.zenevich@gmail.com>
Wed, 14 Aug 2019 14:20:50 +0000
changeset 488221 f896f31915a4ab71706877194697f4f95acf40a1
parent 488220 225c129a3f3e318b3ae1c550342193407be0376a
child 488222 bd8ef39cfadc0e427b1261ae8b2b2f7677d85bd2
push id36437
push userncsoregi@mozilla.com
push dateThu, 15 Aug 2019 19:33:18 +0000
treeherdermozilla-central@44aac6fc3352 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmtigley
bugs1573362
milestone70.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1573362 - update links for the text label checks documentation. r=mtigley Differential Revision: https://phabricator.services.mozilla.com/D41749
devtools/client/accessibility/constants.js
--- a/devtools/client/accessibility/constants.js
+++ b/devtools/client/accessibility/constants.js
@@ -116,36 +116,34 @@ exports.A11Y_CONTRAST_LEARN_MORE_LINK =
   "Color_contrast?utm_source=devtools&utm_medium=a11y-panel-checks-color-contrast";
 
 const A11Y_TEXT_LABEL_LINK_BASE =
   "https://developer.mozilla.org/docs/Web/Accessibility/Understanding_WCAG/Text_labels_and_names" +
   "?utm_source=devtools&utm_medium=a11y-panel-checks-text-label";
 
 const A11Y_TEXT_LABEL_LINK_IDS = {
   [AREA_NO_NAME_FROM_ALT]:
-    "Use_alt_attribute_to_label_<area>_elements_that_have_the_href_attribute",
+    "Use_alt_attribute_to_label_area_elements_that_have_the_href_attribute",
   [DIALOG_NO_NAME]: "Dialogs_should_be_labeled",
-  [DOCUMENT_NO_TITLE]: "Documents_must_have_a_<title>",
+  [DOCUMENT_NO_TITLE]: "Documents_must_have_a_title",
   [EMBED_NO_NAME]: "Embedded_content_must_be_labeled",
   [FIGURE_NO_NAME]: "Figures_with_optional_captions_should_be_labeled",
-  [FORM_FIELDSET_NO_NAME]: "<fieldset>_elements_must_be_labeled",
-  [FORM_FIELDSET_NO_NAME_FROM_LEGEND]:
-    "Use_<legend>_element_to_label_<fieldset>_elements",
+  [FORM_FIELDSET_NO_NAME]: "Fieldset_elements_must_be_labeled",
+  [FORM_FIELDSET_NO_NAME_FROM_LEGEND]: "Use_a_legend_to_label_a_fieldset",
   [FORM_NO_NAME]: "Form_elements_must_be_labeled",
   [FORM_NO_VISIBLE_NAME]: "Form_elements_should_have_a_visible_text_label",
   [FORM_OPTGROUP_NO_NAME_FROM_LABEL]:
-    "Use_label_attribute_to_label_<optgroup>_elements",
-  [FRAME_NO_NAME]: "<frame>_elements_must_be_labeled",
+    "Use_label_attribute_on_optgroup_elements",
+  [FRAME_NO_NAME]: "Frame_elements_must_be_labeled",
   [HEADING_NO_NAME]: "Headings_must_be_labeled",
   [HEADING_NO_CONTENT]: "Headings_should_have_visible_text_content",
-  [IFRAME_NO_NAME_FROM_TITLE]:
-    "Use_title_attribute_to_describe_<iframe>_content",
+  [IFRAME_NO_NAME_FROM_TITLE]: "Use_title_attribute_to_describe_iframe_content",
   [IMAGE_NO_NAME]: "Content_with_images_must_be_labeled",
   [INTERACTIVE_NO_NAME]: "Interactive_elements_must_be_labeled",
-  [MATHML_GLYPH_NO_NAME]: "Use_alt_attribute_to_label_<mglyph>_elements",
+  [MATHML_GLYPH_NO_NAME]: "Use_alt_attribute_to_label_mglyph_elements",
   [TOOLBAR_NO_NAME]:
     "Toolbars_must_be_labeled_when_there_is_more_than_one_toolbar",
 };
 
 const A11Y_TEXT_LABEL_LINKS = {};
 for (const key in A11Y_TEXT_LABEL_LINK_IDS) {
   A11Y_TEXT_LABEL_LINKS[key] = `${A11Y_TEXT_LABEL_LINK_BASE}#${
     A11Y_TEXT_LABEL_LINK_IDS[key]