From d23b32adafd4edd8438f32d63c3a60798dc67306 Mon Sep 17 00:00:00 2001 From: Agustina Chaer Date: Sun, 9 May 2021 11:06:35 -0300 Subject: [PATCH 1/4] feat: add WCAG levels --- src/_data/checklists.json | 201 ++++++++++++++++++--------- src/_includes/checklist.njk | 2 + src/css/components/_c-checklist.scss | 12 ++ 3 files changed, 148 insertions(+), 67 deletions(-) diff --git a/src/_data/checklists.json b/src/_data/checklists.json index 4cc14238f..d3af7f7ec 100644 --- a/src/_data/checklists.json +++ b/src/_data/checklists.json @@ -5,21 +5,24 @@ "checkboxId": "use-plain-language", "wcag": "3.1.5 Reading Level", "url": "https://www.w3.org/TR/UNDERSTANDING-WCAG20/meaning-supplements.html", - "description": "Write content at an 8th grade reading level." + "description": "Write content at an 8th grade reading level.", + "wcagLevel": "AAA" }, { "title": "Make sure that button, a, and label element content is unique and descriptive. ", "checkboxId": "make-sure-interactive-content-is-unique", "wcag": "1.3.1 Info and Relationships", "url": "https://www.w3.org/TR/UNDERSTANDING-WCAG20/content-structure-separation-programmatic.html", - "description": "Terms like “click here” and “read more” do not provide any context. Some people navigate using a list of all buttons or links on a page or view. When using this mode, the terms indicate what will happen if navigated to or activated." + "description": "Terms like “click here” and “read more” do not provide any context. Some people navigate using a list of all buttons or links on a page or view. When using this mode, the terms indicate what will happen if navigated to or activated.", + "wcagLevel": "A" }, { "title": "Use left-aligned text for left-to-right (LTR) languages, and right-aligned text for right-to-left (RTL) languages.", "checkboxId": "use-ltr-rtl", "wcag": "1.4.8 Visual Presentation", "url": "https://www.w3.org/TR/UNDERSTANDING-WCAG20/visual-audio-contrast-visual-presentation.html", - "description": "Centered-aligned or justified text is difficult to read." + "description": "Centered-aligned or justified text is difficult to read.", + "wcagLevel": "AAA" } ], "global": [ @@ -28,63 +31,72 @@ "checkboxId": "validate-html", "wcag": "4.1.1 Parsing", "url": "https://www.w3.org/TR/UNDERSTANDING-WCAG20/ensure-compat-parses.html", - "description": "Valid HTML helps to provide an consistent, expected experience across all browsers and assistive technology." + "description": "Valid HTML helps to provide an consistent, expected experience across all browsers and assistive technology.", + "wcagLevel": "A" }, { "title": "Use a lang attribute on the html element.", "checkboxId": "use-lang-attribute", "wcag": "3.1.1 Language of Page", "url": "https://www.w3.org/TR/UNDERSTANDING-WCAG20/meaning-doc-lang-id.html", - "description": "This helps assistive technology such as screen readers to pronounce content correctly." + "description": "This helps assistive technology such as screen readers to pronounce content correctly.", + "wcagLevel": "A" }, { "title": "Provide a unique title for each page or view.", "checkboxId": "provide-unique-page-title", "wcag": "2.4.2 Page Titled", "url": "https://www.w3.org/TR/UNDERSTANDING-WCAG20/navigation-mechanisms-title.html", - "description": "The title element, contained in the document's head element, is often the first piece of information announced by assistive technology. This helps tell people what page or view they are going to start navigating." + "description": "The title element, contained in the document's head element, is often the first piece of information announced by assistive technology. This helps tell people what page or view they are going to start navigating.", + "wcagLevel": "A" }, { "title": "Ensure that viewport zoom is not disabled.", "checkboxId": "dont-disable-zoom", "wcag": "1.4.4 Resize text", "url": "https://www.w3.org/TR/UNDERSTANDING-WCAG20/visual-audio-contrast-scale.html", - "description": "Some people need to increase the size of text to a point where they can read it. Do not stop them from doing this, even for web apps with a native app-like experience. Even native apps should respect Operating System settings for resizing text." + "description": "Some people need to increase the size of text to a point where they can read it. Do not stop them from doing this, even for web apps with a native app-like experience. Even native apps should respect Operating System settings for resizing text.", + "wcagLevel": "AA" }, { "title": "Use landmark elements to indicate important content regions.", "checkboxId": "use-landmark-elements", "wcag": "4.1.2 Name, Role, Value", "url": "https://www.w3.org/TR/UNDERSTANDING-WCAG20/ensure-compat-rsv.html", - "description": "Landmark regions help communicate the layout and important areas of a page or view, and can allow quick access to these regions. For example, use the nav element to wrap a site's navigation, and the main element to contain the primary content of a page." + "description": "Landmark regions help communicate the layout and important areas of a page or view, and can allow quick access to these regions. For example, use the nav element to wrap a site's navigation, and the main element to contain the primary content of a page.", + "wcagLevel": "A" }, { "title": "Ensure a linear content flow.", "checkboxId": "linear-content-flow", "wcag": "2.4.3 Focus Order", "url": "https://www.w3.org/TR/UNDERSTANDING-WCAG20/navigation-mechanisms-focus-order.html", - "description": "Remove tabindex attribute values that aren't either 0 or -1. Elements that are inherently focusable, such as links or button elements, do not require a tabindex. Elements that are not inherently focusable should not have a tabindex applied to them outside of very specific use cases." + "description": "Remove tabindex attribute values that aren't either 0 or -1. Elements that are inherently focusable, such as links or button elements, do not require a tabindex. Elements that are not inherently focusable should not have a tabindex applied to them outside of very specific use cases.", + "wcagLevel": "A" }, { "title": "Avoid using the autofocus attribute.", "checkboxId": "avoid-autofocus", "wcag": "2.4.3 Focus Order", "url": "https://www.w3.org/TR/UNDERSTANDING-WCAG20/navigation-mechanisms-focus-order.html", - "description": " People who are blind or who have low vision may be disoriented when focus is moved without their permission. Additionally, autofocus can be problematic for people with motor control disabilities, as it may create extra work for them to navigate out from the autofocused area and to other locations on the page/view." + "description": " People who are blind or who have low vision may be disoriented when focus is moved without their permission. Additionally, autofocus can be problematic for people with motor control disabilities, as it may create extra work for them to navigate out from the autofocused area and to other locations on the page/view.", + "wcagLevel": "A" }, { "title": "Remove session timeouts.", "checkboxId": "remove-timeouts", "wcag": "2.2.1 Timing Adjustable", "url": "https://www.w3.org/TR/UNDERSTANDING-WCAG20/time-limits-required-behaviors.html", - "description": "If you cannot, let the person using your site know the timeout exists ahead of time, and provide significant notice before the timer runs out." + "description": "If you cannot, let the person using your site know the timeout exists ahead of time, and provide significant notice before the timer runs out.", + "wcagLevel": "A" }, { "title": "Remove title attribute tooltips.", "checkboxId": "remove-title-attribute", "wcag": "4.1.2 Name, Role, Value", "url": "https://www.w3.org/TR/UNDERSTANDING-WCAG20/ensure-compat-rsv.html", - "description": "The title attribute has numerous issues, and should not be used if the information provided is important for all people to access. An acceptable use for the title attribute would be labeling an iframe element to indicate what content it contains." + "description": "The title attribute has numerous issues, and should not be used if the information provided is important for all people to access. An acceptable use for the title attribute would be labeling an iframe element to indicate what content it contains.", + "wcagLevel": "A" } ], "keyboard": [ @@ -93,21 +105,24 @@ "checkboxId": "visible-focus-style", "wcag": "2.4.7 Focus Visible", "url": "https://www.w3.org/TR/UNDERSTANDING-WCAG20/navigation-mechanisms-focus-visible.html", - "description": "Can a person navigating with a keyboard, switch, voice control, or screen reader see where they currently are on the page?" + "description": "Can a person navigating with a keyboard, switch, voice control, or screen reader see where they currently are on the page?", + "wcagLevel": "AA" }, { "title": "Check to see that keyboard focus order matches the visual layout.", "checkboxId": "focus-matches-layout", "wcag": "1.3.2 Meaningful Sequence", "url": "https://www.w3.org/TR/UNDERSTANDING-WCAG20/content-structure-separation-sequence.html", - "description": "Can a person navigating with a keyboard or screen reader move around the page in a predictable way?" + "description": "Can a person navigating with a keyboard or screen reader move around the page in a predictable way?", + "wcagLevel": "A" }, { "title": "Remove invisible focusable elements.", "checkboxId": "remove-invisible-focusable-elements", "wcag": "2.4.3 Focus Order", "url": "https://www.w3.org/TR/UNDERSTANDING-WCAG20/navigation-mechanisms-focus-order.html", - "description": "Remove the ability to focus on elements that are not presently meant to be discoverable. This includes things like inactive drop down menus, off screen navigations, or modals." + "description": "Remove the ability to focus on elements that are not presently meant to be discoverable. This includes things like inactive drop down menus, off screen navigations, or modals.", + "wcagLevel": "A" } ], "images": [ @@ -116,28 +131,32 @@ "checkboxId": "use-alt-attributes", "wcag": "1.1.1 Non-text Content", "url": "https://www.w3.org/TR/UNDERSTANDING-WCAG20/text-equiv-all.html", - "description": "alt attributes (alt text) give a description of an image for people who may not be able to view them. When an alt attribute isn't present on an image, a screen reader may announce the image's file name and path instead. This fails to communicate the image’s content." + "description": "alt attributes (alt text) give a description of an image for people who may not be able to view them. When an alt attribute isn't present on an image, a screen reader may announce the image's file name and path instead. This fails to communicate the image’s content.", + "wcagLevel": "A" }, { "title": "Make sure that decorative images use null alt (empty) attribute values.", "checkboxId": "null-decorative-images", "wcag": "1.1.1 Non-text Content", "url": "https://www.w3.org/TR/UNDERSTANDING-WCAG20/text-equiv-all.html", - "description": "Null alt attributes are also sometimes known as empty alt attributes. They are made by including no information between the opening and closing quotes of an alt attribute. Decorative images do not communicate information that is required to understand the website's overall meaning. Historically they were used for flourishes and spacer gif images, but tend to be less relevant for modern websites and web apps." + "description": "Null alt attributes are also sometimes known as empty alt attributes. They are made by including no information between the opening and closing quotes of an alt attribute. Decorative images do not communicate information that is required to understand the website's overall meaning. Historically they were used for flourishes and spacer gif images, but tend to be less relevant for modern websites and web apps.", + "wcagLevel": "A" }, { "title": "Provide a text alternative for complex images such as charts, graphs, and maps.", "checkboxId": "text-alternatives", "wcag": "1.1.1 Non-text Content", "url": "https://www.w3.org/TR/UNDERSTANDING-WCAG20/text-equiv-all.html", - "description": "Is there a plain text which lists points on the map or sections of a flowchart? Describe all visible information. This includes graph axes, data points and labels, and the overall point the graphic is communicating." + "description": "Is there a plain text which lists points on the map or sections of a flowchart? Describe all visible information. This includes graph axes, data points and labels, and the overall point the graphic is communicating.", + "wcagLevel": "A" }, { "title": "For images containing text, make sure the alt description includes the image's text.", "checkboxId": "images-containing-text", "wcag": "1.1.1 Non-text Content", "url": "https://www.w3.org/TR/UNDERSTANDING-WCAG20/text-equiv-all.html", - "description": "For example, the FedEx logo should have an alt value of “FedEx.”" + "description": "For example, the FedEx logo should have an alt value of “FedEx.”", + "wcagLevel": "A" } ], "svg": [ @@ -146,28 +165,32 @@ "checkboxId": "svg-focusable-false-child-element", "wcag": "1.3.1 Info and Relationships", "url": "https://www.w3.org/TR/UNDERSTANDING-WCAG20/content-structure-separation-programmatic.html", - "description": "This prevents Internet Explorer from allowing focus to navigate through the child elements of a SVG that is meant to be decorative." + "description": "This prevents Internet Explorer from allowing focus to navigate through the child elements of a SVG that is meant to be decorative.", + "wcagLevel": "A" }, { "title": "Add aria-hidden=\"true\" to SVG that is decorative.", "checkboxId": "decorative-svg", "wcag": "4.1.2 Name, Role, Value", "url": "https://www.w3.org/TR/UNDERSTANDING-WCAG20/ensure-compat-rsv.html", - "description": "This is equivalent to an empty/null alt value on a non-svg image." + "description": "This is equivalent to an empty/null alt value on a non-svg image.", + "wcagLevel": "A" }, { "title": "Make sure that SVG utilizing the use element has whitespace between the svg and use elements.", "checkboxId": "svg-use-whitespace", "wcag": "2.1.2 No Keyboard Trap", "url": "https://www.w3.org/TR/UNDERSTANDING-WCAG20/keyboard-operation-trapping.html", - "description": "This solves a bug in Safari which sometimes creates hidden, unanticipated tab-stops when navigating." + "description": "This solves a bug in Safari which sometimes creates hidden, unanticipated tab-stops when navigating.", + "wcagLevel": "A" }, { "title": "Ensure that img elements with an svg source includes the role=\"img\" attribute.", "checkboxId": "svg-image-src", "wcag": "4.1.2 Name, Role, Value", "url": "https://www.w3.org/TR/UNDERSTANDING-WCAG20/ensure-compat-rsv.html", - "description": "VoiceOver on macOS and iOS will not correctly convey the element as an image if role=\"img\" is not present." + "description": "VoiceOver on macOS and iOS will not correctly convey the element as an image if role=\"img\" is not present.", + "wcagLevel": "A" } ], "headings": [ @@ -176,28 +199,32 @@ "checkboxId": "use-heading-elements", "wcag": "2.4.6 Headings or Labels", "url": "https://www.w3.org/TR/UNDERSTANDING-WCAG20/navigation-mechanisms-descriptive.html", - "description": "Heading elements construct a document outline, and should not be used for purely visual design." + "description": "Heading elements construct a document outline, and should not be used for purely visual design.", + "wcagLevel": "AA" }, { "title": "Use only one h1 element per page or view.", "checkboxId": "use-only-one-h1", "wcag": "2.4.6 Headings or Labels", "url": "https://www.w3.org/TR/UNDERSTANDING-WCAG20/navigation-mechanisms-descriptive.html", - "description": "The h1 element should be used to communicate the high-level purpose of the page or view. Do not use the h1 element for a heading that does not change between pages or views (for example, the site's name)." + "description": "The h1 element should be used to communicate the high-level purpose of the page or view. Do not use the h1 element for a heading that does not change between pages or views (for example, the site's name).", + "wcagLevel": "AA" }, { "title": "Heading elements should be written in a logical sequence.", "checkboxId": "logical-heading-sequence", "wcag": "2.4.6 Headings or Labels", "url": "https://www.w3.org/TR/UNDERSTANDING-WCAG20/navigation-mechanisms-descriptive.html", - "description": "The order of heading elements should descend, based on the “depth” of the content. For example, a h4 element should not appear on a page before the first h3 element declaration. A tool such as headingsMap can help you evaluate this." + "description": "The order of heading elements should descend, based on the “depth” of the content. For example, a h4 element should not appear on a page before the first h3 element declaration. A tool such as headingsMap can help you evaluate this.", + "wcagLevel": "AA" }, { "title": "Don't skip heading levels.", "checkboxId": "dont-skip-heading-levels", "wcag": "2.4.6 Headings or Labels", "url": "https://www.w3.org/TR/UNDERSTANDING-WCAG20/navigation-mechanisms-descriptive.html", - "description": "For example, don't jump from a h2 to a h4, skipping a h3 element. If heading levels are being skipped for a specific visual treatment, use CSS classes instead." + "description": "For example, don't jump from a h2 to a h4, skipping a h3 element. If heading levels are being skipped for a specific visual treatment, use CSS classes instead.", + "wcagLevel": "AA" } ], "lists": [ @@ -206,7 +233,8 @@ "checkboxId": "use-list-elements", "wcag": "1.3.1 Info and Relationships", "url": "https://www.w3.org/TR/UNDERSTANDING-WCAG20/content-structure-separation-programmatic.html", - "description": "This may include sections of related content, items visually displayed in a grid-like layout, or sibling a elements." + "description": "This may include sections of related content, items visually displayed in a grid-like layout, or sibling a elements.", + "wcagLevel": "A" } ], "controls": [ @@ -215,42 +243,48 @@ "checkboxId": "use-links", "wcag": "1.3.1 Info and Relationships", "url": "https://www.w3.org/TR/UNDERSTANDING-WCAG20/content-structure-separation-programmatic.html", - "description": "Links should always have a href attribute, even when used in Single Page Applications (SPAs). Without a href attribute, the link will not be properly exposed to assistive technology. An example of this would be a link that uses an onclick event, in place of a href attribute. " + "description": "Links should always have a href attribute, even when used in Single Page Applications (SPAs). Without a href attribute, the link will not be properly exposed to assistive technology. An example of this would be a link that uses an onclick event, in place of a href attribute. ", + "wcagLevel": "A" }, { "title": "Ensure that links are recognizable as links.", "checkboxId": "recognizable-links", "wcag": "1.4.1 Use of Color", "url": "https://www.w3.org/TR/UNDERSTANDING-WCAG20/visual-audio-contrast-without-color.html", - "description": "Color alone is not sufficient to indicate the presence of a link. Underlines are a popular and commonly-understood way to communicate the presence of link content." + "description": "Color alone is not sufficient to indicate the presence of a link. Underlines are a popular and commonly-understood way to communicate the presence of link content.", + "wcagLevel": "A" }, { "title": "Ensure that controls have :focus states.", "checkboxId": "form-focus-states", "wcag": "2.4.7 Focus Visible", "url": "https://www.w3.org/TR/UNDERSTANDING-WCAG20/navigation-mechanisms-focus-visible.html", - "description": "Visible focus styles help people determine which interactive element has keyboard focus. This lets them know that they can perform actions like activating a button or navigating to a link's destination." + "description": "Visible focus styles help people determine which interactive element has keyboard focus. This lets them know that they can perform actions like activating a button or navigating to a link's destination.", + "wcagLevel": "AA" }, { "title": "Use the button element for buttons.", "checkboxId": "use-button-element", "wcag": "1.3.1 Info and Relationships", "url": "https://www.w3.org/TR/UNDERSTANDING-WCAG20/content-structure-separation-programmatic.html", - "description": "Buttons are used to submit data or perform an on-screen action which does not shift keyboard focus. You can add type=\"button\" to a button element to prevent the browser from attempting to submit form information when activated." + "description": "Buttons are used to submit data or perform an on-screen action which does not shift keyboard focus. You can add type=\"button\" to a button element to prevent the browser from attempting to submit form information when activated.", + "wcagLevel": "A" }, { "title": "Provide a skip link and make sure that it is visible when focused.", "checkboxId": "provide-skip-link", "wcag": "2.4.1 Bypass Blocks", "url": "https://www.w3.org/TR/UNDERSTANDING-WCAG20/navigation-mechanisms-skip.html", - "description": "A skip link can be used to provide quick access to the main content of a page or view. This allows a person to easily bypass globally repeated content such as a website's primary navigation, or persistent search widget." + "description": "A skip link can be used to provide quick access to the main content of a page or view. This allows a person to easily bypass globally repeated content such as a website's primary navigation, or persistent search widget.", + "wcagLevel": "A" }, { "title": "Identify links that open in a new tab or window.", "checkboxId": "identify-new-window", "wcag": "G201: Giving users advanced warning when opening a new window", "url": "https://www.w3.org/TR/WCAG20-TECHS/G201.html", - "description": "Ideally, avoid links that open in a new tab or window. If a link does, ensure the link's behavior will be communicated in a way that is apparent to all users. Doing this will help people understand what will happen before activating the link. While this technique is technically not required for compliance, it is an often-cited area of frustration for many different kinds of assistive technology users." + "description": "Ideally, avoid links that open in a new tab or window. If a link does, ensure the link's behavior will be communicated in a way that is apparent to all users. Doing this will help people understand what will happen before activating the link. While this technique is technically not required for compliance, it is an often-cited area of frustration for many different kinds of assistive technology users.", + "wcagLevel": "Doesn't apply" } ], "tables": [ @@ -259,21 +293,24 @@ "checkboxId": "use-table-elements", "wcag": "1.3.1 Info and Relationships", "url": "https://www.w3.org/TR/UNDERSTANDING-WCAG20/content-structure-separation-programmatic.html", - "description": "Do you need to display data in rows and columns? Use the table element." + "description": "Do you need to display data in rows and columns? Use the table element.", + "wcagLevel": "A" }, { "title": "Use the th element for table headers (with appropriate scope attributes).", "checkboxId": "use-th-element", "wcag": "4.1.1 Parsing", "url": "https://www.w3.org/TR/UNDERSTANDING-WCAG20/ensure-compat-parses.html", - "description": "Depending on how complex your table is, you may also consider using scope=\"col\" for column headers, and scope=\"row\" for row headers. Many different kinds of assistive technology still use the scope attribute to help them understand and describe the structure of a table." + "description": "Depending on how complex your table is, you may also consider using scope=\"col\" for column headers, and scope=\"row\" for row headers. Many different kinds of assistive technology still use the scope attribute to help them understand and describe the structure of a table.", + "wcagLevel": "A" }, { "title": "Use the caption element to provide a title for the table.", "checkboxId": "use-caption-element", "wcag": "2.4.6 Headings or Labels", "url": "https://www.w3.org/TR/UNDERSTANDING-WCAG20/navigation-mechanisms-descriptive.html", - "description": "The table's caption should describe what kind of information the table contains." + "description": "The table's caption should describe what kind of information the table contains.", + "wcagLevel": "AA" } ], "forms": [ @@ -282,42 +319,48 @@ "checkboxId": "associate-inputs-with-labels", "wcag": "3.2.2 On Input", "url": "https://www.w3.org/TR/UNDERSTANDING-WCAG20/consistent-behavior-unpredictable-change.html", - "description": "Use a for/id pairing to guarantee the highest level of browser/assistive technology support. " + "description": "Use a for/id pairing to guarantee the highest level of browser/assistive technology support. ", + "wcagLevel": "A" }, { "title": "Use fieldset and legend elements where appropriate.", "checkboxId": "use-fieldset-and-legend", "wcag": "1.3.1 Info and Relationships", "url": "https://www.w3.org/TR/UNDERSTANDING-WCAG20/content-structure-separation-programmatic.html", - "description": "Does your form contain multiple sections of related inputs? Use fieldset to group them, and legend to provide a label for what this section is for. " + "description": "Does your form contain multiple sections of related inputs? Use fieldset to group them, and legend to provide a label for what this section is for. ", + "wcagLevel": "A" }, { "title": "Inputs use autocomplete where appropriate.", "checkboxId": "use-autocomplete", "wcag": "1.3.5 Identify Input Purpose", "url": "https://www.w3.org/WAI/WCAG21/Understanding/identify-input-purpose.html", - "description": "Providing a mechanism to help people more quickly, easily, and accurately fill in form fields that ask for common information (for example, name, address, phone number)." + "description": "Providing a mechanism to help people more quickly, easily, and accurately fill in form fields that ask for common information (for example, name, address, phone number).", + "wcagLevel": "AA" }, { "title": "Make sure that form input errors are displayed in list above the form after submission.", "checkboxId": "display-form-errors", "wcag": "3.3.1 Error Identification", "url": "https://www.w3.org/TR/UNDERSTANDING-WCAG20/minimize-error-identified.html", - "description": "This provides a way for assistive technology users to quickly have a high-level understanding of what issues are present in the form. This is especially important for larger forms with many inputs. Make sure that each reported error also has a link to the corresponding field with invalid input." + "description": "This provides a way for assistive technology users to quickly have a high-level understanding of what issues are present in the form. This is especially important for larger forms with many inputs. Make sure that each reported error also has a link to the corresponding field with invalid input.", + "wcagLevel": "A" }, { "title": "Associate input error messaging with the input it corresponds to.", "checkboxId": "associate-error-messages", "wcag": "3.3.1 Error Identification", "url": "https://www.w3.org/TR/UNDERSTANDING-WCAG20/minimize-error-identified.html", - "description": "Techniques such as using aria-describedby allow people who use assistive technology to more easily understand the difference between the input and the error message associated with it." + "description": "Techniques such as using aria-describedby allow people who use assistive technology to more easily understand the difference between the input and the error message associated with it.", + "wcagLevel": "A" }, { "title": "Make sure that error, warning, and success states are not visually communicated by just color.", "checkboxId": "dont-use-just-color-for-states", "wcag": "1.4.1 Use of Color", "url": "https://www.w3.org/TR/UNDERSTANDING-WCAG20/visual-audio-contrast-without-color.html", - "description": "People who are color blind, who have other low vision conditions, or different cultural understandings for color may not see the state change, or understand what kind of feedback the state represents if color is the only indicator. " + "description": "People who are color blind, who have other low vision conditions, or different cultural understandings for color may not see the state change, or understand what kind of feedback the state represents if color is the only indicator. ", + "wcagLevel": "A" } ], "media": [ @@ -326,21 +369,24 @@ "checkboxId": "avoid-autoplay", "wcag": "1.4.2 Audio Control", "url": "https://www.w3.org/TR/UNDERSTANDING-WCAG20/visual-audio-contrast-dis-audio.html", - "description": "Unexpected video and audio can be distracting and disruptive, especially for certain kinds of cognitive disability such as ADHD. Certain kinds of autoplaying video and animation can be a trigger for vestibular and seizure disorders." + "description": "Unexpected video and audio can be distracting and disruptive, especially for certain kinds of cognitive disability such as ADHD. Certain kinds of autoplaying video and animation can be a trigger for vestibular and seizure disorders.", + "wcagLevel": "A" }, { "title": "Ensure that media controls use appropriate markup.", "checkboxId": "media-controls-use-appropriate-markup", "wcag": "1.3.1 Info and Relationships", "url": "https://www.w3.org/TR/UNDERSTANDING-WCAG20/content-structure-separation-programmatic.html", - "description": "Examples include making sure an audio mute button has a pressed toggle state when active, or that a volume slider uses <input type=\"range\">." + "description": "Examples include making sure an audio mute button has a pressed toggle state when active, or that a volume slider uses <input type=\"range\">.", + "wcagLevel": "A" }, { "title": "Check to see that all media can be paused.", "checkboxId": "pause-media", "wcag": "2.1.1 Keyboard", "url": "https://www.w3.org/TR/UNDERSTANDING-WCAG20/keyboard-operation-keyboard-operable.html", - "description": "Provide a global pause function on any media element. If the device has a keyboard, ensure that pressing the Space key can pause playback. Make sure you also don't interfere with the Space key's ability to scroll the page/view when not focusing on a form control." + "description": "Provide a global pause function on any media element. If the device has a keyboard, ensure that pressing the Space key can pause playback. Make sure you also don't interfere with the Space key's ability to scroll the page/view when not focusing on a form control.", + "wcagLevel": "A" } ], "video": [ @@ -349,14 +395,16 @@ "checkboxId": "use-captions", "wcag": "1.2.2 Captions", "url": "https://www.w3.org/TR/UNDERSTANDING-WCAG20/media-equiv-captions.html", - "description": "Captions allow a person who cannot hear the audio content of a video to still understand its content." + "description": "Captions allow a person who cannot hear the audio content of a video to still understand its content.", + "wcagLevel": "A" }, { "title": " Remove seizure triggers.", "checkboxId": "remove-seizure-triggers", "wcag": "2.3.1 Three Flashes or Below Threshold", "url": "https://www.w3.org/TR/UNDERSTANDING-WCAG20/seizure-does-not-violate.html", - "description": " Certain kinds of strobing or flashing animations will trigger seizures." + "description": " Certain kinds of strobing or flashing animations will trigger seizures.", + "wcagLevel": "A" } ], "audio": [ @@ -365,7 +413,8 @@ "checkboxId": "confirm-transcripts", "wcag": "1.1.1 Non-text Content", "url": "https://www.w3.org/TR/UNDERSTANDING-WCAG20/text-equiv-all.html", - "description": " Transcripts allow people who cannot hear to still understand the audio content. It also allows people to digest audio content at a pace that is comfortable to them." + "description": " Transcripts allow people who cannot hear to still understand the audio content. It also allows people to digest audio content at a pace that is comfortable to them.", + "wcagLevel": "A" } ], "appearance": [ @@ -374,35 +423,40 @@ "checkboxId": "check-specialized-modes", "wcag": "1.4.1 Use of Color", "url": "https://www.w3.org/TR/UNDERSTANDING-WCAG20/visual-audio-contrast-without-color.html", - "description": "Activate modes such as Windows High Contrast or Inverted Colors. Is your content still legible? Are your icons, borders, links, form fields, and other content still present? Can you distinguish foreground content from the background?" + "description": "Activate modes such as Windows High Contrast or Inverted Colors. Is your content still legible? Are your icons, borders, links, form fields, and other content still present? Can you distinguish foreground content from the background?", + "wcagLevel": "A" }, { "title": "Increase text size to 200%.", "checkboxId": "increase-text-size", "wcag": "1.4.4 Resize text", "url": "https://www.w3.org/TR/UNDERSTANDING-WCAG20/visual-audio-contrast-scale.html", - "description": "Is the content still readable? Does increasing the text size cause content to overlap?" + "description": "Is the content still readable? Does increasing the text size cause content to overlap?", + "wcagLevel": "AA" }, { "title": "Double-check that good proximity between content is maintained.", "checkboxId": "good-proximity-of-content", "wcag": "1.3.3 Sensory Characteristics", "url": "https://www.w3.org/TR/UNDERSTANDING-WCAG20/content-structure-separation-understanding.html", - "description": "Use the straw test to ensure people who depend on screen zoom software can still easily discover all content. " + "description": "Use the straw test to ensure people who depend on screen zoom software can still easily discover all content. ", + "wcagLevel": "A" }, { "title": "Make sure color isn't the only way information is conveyed.", "checkboxId": "no-color-alone", "wcag": "1.4.1 Use of Color", "url": "https://www.w3.org/TR/UNDERSTANDING-WCAG20/visual-audio-contrast-without-color.html", - "description": "Can you still see where links are among body content if everything is grayscale?" + "description": "Can you still see where links are among body content if everything is grayscale?", + "wcagLevel": "A" }, { "title": " Use a simple, straightforward, and consistent layout.", "checkboxId": "consistent-layout", "wcag": "1.4.10 Reflow", "url": "https://www.w3.org/WAI/WCAG21/Understanding/reflow.html", - "description": "A complicated layout can be confusing to understand and use." + "description": "A complicated layout can be confusing to understand and use.", + "wcagLevel": "AA" } ], "animation": [ @@ -411,21 +465,24 @@ "checkboxId": "avoid-flashes", "wcag": "2.3.1 Three Flashes or Below Threshold", "url": "https://www.w3.org/TR/UNDERSTANDING-WCAG20/seizure-does-not-violate.html", - "description": "Certain kinds of strobing or flashing animations will trigger seizures. Others may be distracting and disruptive, especially for certain kinds of cognitive disability such as ADHD." + "description": "Certain kinds of strobing or flashing animations will trigger seizures. Others may be distracting and disruptive, especially for certain kinds of cognitive disability such as ADHD.", + "wcagLevel": "A" }, { "title": "Provide a mechanism to pause background video.", "checkboxId": "pause-background-video", "wcag": "2.2.2 Pause, Stop, Hide", "url": "https://www.w3.org/TR/UNDERSTANDING-WCAG20/time-limits-pause.html", - "description": "Background video can be distracting, especially if content is placed over it." + "description": "Background video can be distracting, especially if content is placed over it.", + "wcagLevel": "A" }, { "title": "Make sure all animation obeys the prefers-reduced-motion media query.", "checkboxId": "prefers-reduced-motion", "wcag": "2.3.3 Animation from Interactions", "url": "https://www.w3.org/WAI/WCAG21/Understanding/animation-from-interactions.html", - "description": "Remove animations when the “reduce motion” setting is activated. If an animation is necessary to communicate meaning for a concept, slow its duration down." + "description": "Remove animations when the “reduce motion” setting is activated. If an animation is necessary to communicate meaning for a concept, slow its duration down.", + "wcagLevel": "AAA" } ], "colorContrast": [ @@ -434,42 +491,48 @@ "checkboxId": "normal-text-contrast", "wcag": "1.4.3 Contrast", "url": "https://www.w3.org/TR/UNDERSTANDING-WCAG20/visual-audio-contrast-contrast.html", - "description": "Level AA compliance requires a contrast ratio of 4.5:1." + "description": "Level AA compliance requires a contrast ratio of 4.5:1.", + "wcagLevel": "AA" }, { "title": "Check the contrast for all large-sized text.", "checkboxId": "large-text-contrast", "wcag": "1.4.3 Contrast", "url": "https://www.w3.org/TR/UNDERSTANDING-WCAG20/visual-audio-contrast-contrast.html", - "description": "Level AA compliance requires a contrast ratio of 3:1." + "description": "Level AA compliance requires a contrast ratio of 3:1.", + "wcagLevel": "AA" }, { "title": "Check the contrast for all icons.", "checkboxId": "icon-contrast", "wcag": "1.4.11 Non-text Contrast", "url": "https://www.w3.org/WAI/WCAG21/Understanding/non-text-contrast.html", - "description": "Level AA compliance requires a contrast ratio of 3.0:1." + "description": "Level AA compliance requires a contrast ratio of 3.0:1.", + "wcagLevel": "AA" }, { "title": "Check the contrast of borders for input elements (text input, radio buttons, checkboxes, etc.).", "checkboxId": "input-contrast", "wcag": "1.4.11 Non-text Contrast", "url": "https://www.w3.org/WAI/WCAG21/Understanding/non-text-contrast.html", - "description": "Level AA compliance requires a contrast ratio of 3.0:1." + "description": "Level AA compliance requires a contrast ratio of 3.0:1.", + "wcagLevel": "AA" }, { "title": "Check text that overlaps images or video.", "checkboxId": "overlap-contrast", "wcag": "1.4.3 Contrast", "url": "https://www.w3.org/TR/UNDERSTANDING-WCAG20/visual-audio-contrast-contrast.html", - "description": "Is text still legible?" + "description": "Is text still legible?", + "wcagLevel": "AA" }, { "title": "Check custom ::selection colors.", "checkboxId": "selection-contrast", "wcag": "1.4.3 Contrast", "url": "https://www.w3.org/TR/UNDERSTANDING-WCAG20/visual-audio-contrast-contrast.html", - "description": " Is the color contrast you set in your ::selection CSS declaration sufficient? Otherwise someone may not be able read it if they highlight it. " + "description": " Is the color contrast you set in your ::selection CSS declaration sufficient? Otherwise someone may not be able read it if they highlight it. ", + "wcagLevel": "AA" } ], "mobile": [ @@ -478,28 +541,32 @@ "checkboxId": "device-rotation", "wcag": "1.3.4 Orientation", "url": "https://www.w3.org/WAI/WCAG21/Understanding/orientation.html", - "description": "Does the site only allow portrait orientation?" + "description": "Does the site only allow portrait orientation?", + "wcagLevel": "AA" }, { "title": "Remove horizontal scrolling.", "checkboxId": "remove-horizontal-scrolling", "wcag": "1.4.10 Reflow", "url": "https://www.w3.org/WAI/WCAG21/Understanding/reflow.html", - "description": "Requiring someone to scroll horizontally can be difficult for some, irritating for all." + "description": "Requiring someone to scroll horizontally can be difficult for some, irritating for all.", + "wcagLevel": "AA" }, { "title": "Ensure that button and link icons can be activated with ease.", "checkboxId": "easy-activation", "wcag": "2.5.5 Target Size", "url": "https://www.w3.org/WAI/WCAG21/Understanding/target-size.html", - "description": "It's good to make sure things like hamburger menus, social icons, gallery viewers, and other touch controls are usable by a wide range of hand and stylus sizes." + "description": "It's good to make sure things like hamburger menus, social icons, gallery viewers, and other touch controls are usable by a wide range of hand and stylus sizes.", + "wcagLevel": "AAA" }, { "title": "Ensure sufficient space between interactive items in order to provide a scroll area.", "checkboxId": "space-between-clickable-items", "wcag": "2.4.1 Bypass Blocks", "url": "https://www.w3.org/TR/UNDERSTANDING-WCAG20/navigation-mechanisms-skip.html", - "description": "Some people who experience motor control issues such as hand tremors may have a very difficult time scrolling past interactive items which feature zero spacing." + "description": "Some people who experience motor control issues such as hand tremors may have a very difficult time scrolling past interactive items which feature zero spacing.", + "wcagLevel": "A" } ] } diff --git a/src/_includes/checklist.njk b/src/_includes/checklist.njk index 493f59ef6..5b5048796 100755 --- a/src/_includes/checklist.njk +++ b/src/_includes/checklist.njk @@ -3,6 +3,7 @@ {% set title = checklist.title | safe %} {% set url = checklist.url %} {% set wcag = checklist.wcag %} +{% set wcagLevel = checklist.wcagLevel %}
@@ -26,6 +27,7 @@

{{ wcag }}

+

Level: {{ wcagLevel }}

{{ description }}

diff --git a/src/css/components/_c-checklist.scss b/src/css/components/_c-checklist.scss index 02580377d..d821a987e 100644 --- a/src/css/components/_c-checklist.scss +++ b/src/css/components/_c-checklist.scss @@ -251,6 +251,18 @@ margin-left: 1rem; } } +.c-checklist__wcag-levels { + line-height: $line-height-looser; + margin-top: 0.75rem; + padding-right: map-get($_checklist-padding, small); + padding-left: map-get($_checklist-inset, small); + + // Breakpoints + @include mappy-bp(palm-medium) { + padding-right: map-get($_checklist-padding, large); + padding-left: map-get($_checklist-inset, large); + } +} .c-checklist__description { line-height: $line-height-looser; From f0c57cc5737208a78ebd4d8234a99097cc824c33 Mon Sep 17 00:00:00 2001 From: EJ Mason Date: Sun, 9 May 2021 16:50:31 -0700 Subject: [PATCH 2/4] Fix prop name mismatch --- src/_data/checklists.json | 52 ++++++++++++++++++++++++++++++++++++++- 1 file changed, 51 insertions(+), 1 deletion(-) diff --git a/src/_data/checklists.json b/src/_data/checklists.json index 27f9fd01a..57f899fdb 100644 --- a/src/_data/checklists.json +++ b/src/_data/checklists.json @@ -530,7 +530,57 @@ ] }, "color contrast": { - "preface": "Color contrast is how legible colors are when placed next to, and on top of each other." + "preface": "Color contrast is how legible colors are when placed next to, and on top of each other.", + "tasks": [ + { + "title": "Check the contrast for all normal-sized text.", + "checkboxId": "normal-text-contrast", + "wcag": "1.4.3 Contrast", + "url": "https://www.w3.org/TR/UNDERSTANDING-WCAG20/visual-audio-contrast-contrast.html", + "description": "Level AA compliance requires a contrast ratio of 4.5:1.", + "wcagLevel": "AA" + }, + { + "title": "Check the contrast for all large-sized text.", + "checkboxId": "large-text-contrast", + "wcag": "1.4.3 Contrast", + "url": "https://www.w3.org/TR/UNDERSTANDING-WCAG20/visual-audio-contrast-contrast.html", + "description": "Level AA compliance requires a contrast ratio of 3:1.", + "wcagLevel": "AA" + }, + { + "title": "Check the contrast for all icons.", + "checkboxId": "icon-contrast", + "wcag": "1.4.11 Non-text Contrast", + "url": "https://www.w3.org/WAI/WCAG21/Understanding/non-text-contrast.html", + "description": "Level AA compliance requires a contrast ratio of 3.0:1.", + "wcagLevel": "AA" + }, + { + "title": "Check the contrast of borders for input elements (text input, radio buttons, checkboxes, etc.).", + "checkboxId": "input-contrast", + "wcag": "1.4.11 Non-text Contrast", + "url": "https://www.w3.org/WAI/WCAG21/Understanding/non-text-contrast.html", + "description": "Level AA compliance requires a contrast ratio of 3.0:1.", + "wcagLevel": "AA" + }, + { + "title": "Check text that overlaps images or video.", + "checkboxId": "overlap-contrast", + "wcag": "1.4.3 Contrast", + "url": "https://www.w3.org/TR/UNDERSTANDING-WCAG20/visual-audio-contrast-contrast.html", + "description": "Is text still legible?", + "wcagLevel": "AA" + }, + { + "title": "Check custom ::selection colors.", + "checkboxId": "selection-contrast", + "wcag": "1.4.3 Contrast", + "url": "https://www.w3.org/TR/UNDERSTANDING-WCAG20/visual-audio-contrast-contrast.html", + "description": " Is the color contrast you set in your ::selection CSS declaration sufficient? Otherwise someone may not be able read it if they highlight it. ", + "wcagLevel": "AA" + } + ] }, "mobile": { "preface": "Things to check mobile experiences for.", From aee56061efaf0a9a5cf9da6e5ea79c74e6254326 Mon Sep 17 00:00:00 2001 From: EJ Mason Date: Mon, 10 May 2021 08:32:08 -0700 Subject: [PATCH 3/4] Fix misnamed checklist category --- src/_data/checklists.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/_data/checklists.json b/src/_data/checklists.json index 57f899fdb..74bbb7a5a 100644 --- a/src/_data/checklists.json +++ b/src/_data/checklists.json @@ -582,7 +582,7 @@ } ] }, - "mobile": { + "mobile and touch": { "preface": "Things to check mobile experiences for.", "tasks": [ { From 7b5c8cbff2aff1b474e3b3877671b83bdc6a734b Mon Sep 17 00:00:00 2001 From: Agustina Chaer Date: Sun, 6 Jun 2021 11:53:25 -0300 Subject: [PATCH 4/4] temporarily remove some unclear checklist items --- src/_data/checklists.json | 141 +------------------------------------- 1 file changed, 1 insertion(+), 140 deletions(-) diff --git a/src/_data/checklists.json b/src/_data/checklists.json index 74bbb7a5a..594a09c29 100644 --- a/src/_data/checklists.json +++ b/src/_data/checklists.json @@ -10,14 +10,6 @@ "description": "Write content at an 8th grade reading level.", "wcagLevel": "AAA" }, - { - "title": "Make sure that button, a, and label element content is unique and descriptive. ", - "checkboxId": "make-sure-interactive-content-is-unique", - "wcag": "1.3.1 Info and Relationships", - "url": "https://www.w3.org/TR/UNDERSTANDING-WCAG20/content-structure-separation-programmatic.html", - "description": "Terms like “click here” and “read more” do not provide any context. Some people navigate using a list of all buttons or links on a page or view. When using this mode, the terms indicate what will happen if navigated to or activated.", - "wcagLevel": "A" - }, { "title": "Use left-aligned text for left-to-right (LTR) languages, and right-aligned text for right-to-left (RTL) languages.", "checkboxId": "use-ltr-rtl", @@ -63,30 +55,13 @@ "description": "Some people need to increase the size of text to a point where they can read it. Do not stop them from doing this, even for web apps with a native app-like experience. Even native apps should respect Operating System settings for resizing text.", "wcagLevel": "AA" }, - { - "title": "Use landmark elements to indicate important content regions.", - "checkboxId": "use-landmark-elements", - "wcag": "4.1.2 Name, Role, Value", - "url": "https://www.w3.org/TR/UNDERSTANDING-WCAG20/ensure-compat-rsv.html", - "description": "Landmark regions help communicate the layout and important areas of a page or view, and can allow quick access to these regions. For example, use the nav element to wrap a site's navigation, and the main element to contain the primary content of a page.", - "wcagLevel": "A" - }, { "title": "Ensure a linear content flow.", - "checkboxId": "linear-content-flow", "wcag": "2.4.3 Focus Order", "url": "https://www.w3.org/TR/UNDERSTANDING-WCAG20/navigation-mechanisms-focus-order.html", "description": "Remove tabindex attribute values that aren't either 0 or -1. Elements that are inherently focusable, such as links or button elements, do not require a tabindex. Elements that are not inherently focusable should not have a tabindex applied to them outside of very specific use cases.", "wcagLevel": "A" }, - { - "title": "Avoid using the autofocus attribute.", - "checkboxId": "avoid-autofocus", - "wcag": "2.4.3 Focus Order", - "url": "https://www.w3.org/TR/UNDERSTANDING-WCAG20/navigation-mechanisms-focus-order.html", - "description": " People who are blind or who have low vision may be disoriented when focus is moved without their permission. Additionally, autofocus can be problematic for people with motor control disabilities, as it may create extra work for them to navigate out from the autofocused area and to other locations on the page/view.", - "wcagLevel": "A" - }, { "title": "Remove session timeouts.", "checkboxId": "remove-timeouts", @@ -94,14 +69,6 @@ "url": "https://www.w3.org/TR/UNDERSTANDING-WCAG20/time-limits-required-behaviors.html", "description": "If you cannot, let the person using your site know the timeout exists ahead of time, and provide significant notice before the timer runs out.", "wcagLevel": "A" - }, - { - "title": "Remove title attribute tooltips.", - "checkboxId": "remove-title-attribute", - "wcag": "4.1.2 Name, Role, Value", - "url": "https://www.w3.org/TR/UNDERSTANDING-WCAG20/ensure-compat-rsv.html", - "description": "The title attribute has numerous issues, and should not be used if the information provided is important for all people to access. An acceptable use for the title attribute would be labeling an iframe element to indicate what content it contains.", - "wcagLevel": "A" } ] }, @@ -116,14 +83,6 @@ "description": "Can a person navigating with a keyboard, switch, voice control, or screen reader see where they currently are on the page?", "wcagLevel": "AA" }, - { - "title": "Check to see that keyboard focus order matches the visual layout.", - "checkboxId": "focus-matches-layout", - "wcag": "1.3.2 Meaningful Sequence", - "url": "https://www.w3.org/TR/UNDERSTANDING-WCAG20/content-structure-separation-sequence.html", - "description": "Can a person navigating with a keyboard or screen reader move around the page in a predictable way?", - "wcagLevel": "A" - }, { "title": "Remove invisible focusable elements.", "checkboxId": "remove-invisible-focusable-elements", @@ -207,43 +166,6 @@ } ] }, - "headings": { - "preface": "Heading elements (h1, h2, h3, etc.) help break up the content of the page into related “chunks” of information. They are incredibly important for helping people who use assistive technology to understand the meaning of a page or view.", - "tasks": [ - { - "title": "Use heading elements to introduce content.", - "checkboxId": "use-heading-elements", - "wcag": "2.4.6 Headings or Labels", - "url": "https://www.w3.org/TR/UNDERSTANDING-WCAG20/navigation-mechanisms-descriptive.html", - "description": "Heading elements construct a document outline, and should not be used for purely visual design.", - "wcagLevel": "AA" - }, - { - "title": "Use only one h1 element per page or view.", - "checkboxId": "use-only-one-h1", - "wcag": "2.4.6 Headings or Labels", - "url": "https://www.w3.org/TR/UNDERSTANDING-WCAG20/navigation-mechanisms-descriptive.html", - "description": "The h1 element should be used to communicate the high-level purpose of the page or view. Do not use the h1 element for a heading that does not change between pages or views (for example, the site's name).", - "wcagLevel": "AA" - }, - { - "title": "Heading elements should be written in a logical sequence.", - "checkboxId": "logical-heading-sequence", - "wcag": "2.4.6 Headings or Labels", - "url": "https://www.w3.org/TR/UNDERSTANDING-WCAG20/navigation-mechanisms-descriptive.html", - "description": "The order of heading elements should descend, based on the “depth” of the content. For example, a h4 element should not appear on a page before the first h3 element declaration. A tool such as headingsMap can help you evaluate this.", - "wcagLevel": "AA" - }, - { - "title": "Don't skip heading levels.", - "checkboxId": "dont-skip-heading-levels", - "wcag": "2.4.6 Headings or Labels", - "url": "https://www.w3.org/TR/UNDERSTANDING-WCAG20/navigation-mechanisms-descriptive.html", - "description": "For example, don't jump from a h2 to a h4, skipping a h3 element. If heading levels are being skipped for a specific visual treatment, use CSS classes instead.", - "wcagLevel": "AA" - } - ] - }, "lists": { "preface": "Lists elements let people know a collection of items are related and if they are sequential, and how many items are present in the list grouping.", "tasks": [ @@ -320,36 +242,12 @@ "url": "https://www.w3.org/TR/UNDERSTANDING-WCAG20/content-structure-separation-programmatic.html", "description": "Do you need to display data in rows and columns? Use the table element.", "wcagLevel": "A" - }, - { - "title": "Use the th element for table headers (with appropriate scope attributes).", - "checkboxId": "use-th-element", - "wcag": "4.1.1 Parsing", - "url": "https://www.w3.org/TR/UNDERSTANDING-WCAG20/ensure-compat-parses.html", - "description": "Depending on how complex your table is, you may also consider using scope=\"col\" for column headers, and scope=\"row\" for row headers. Many different kinds of assistive technology still use the scope attribute to help them understand and describe the structure of a table.", - "wcagLevel": "A" - }, - { - "title": "Use the caption element to provide a title for the table.", - "checkboxId": "use-caption-element", - "wcag": "2.4.6 Headings or Labels", - "url": "https://www.w3.org/TR/UNDERSTANDING-WCAG20/navigation-mechanisms-descriptive.html", - "description": "The table's caption should describe what kind of information the table contains.", - "wcagLevel": "AA" } ] }, "forms": { "preface": "Forms allow people to enter information into a site for processing and manipulation. This includes things like sending messages and placing orders.", "tasks": [ - { - "title": "All inputs in a form are associated with a corresponding label element.", - "checkboxId": "associate-inputs-with-labels", - "wcag": "3.2.2 On Input", - "url": "https://www.w3.org/TR/UNDERSTANDING-WCAG20/consistent-behavior-unpredictable-change.html", - "description": "Use a for/id pairing to guarantee the highest level of browser/assistive technology support. ", - "wcagLevel": "A" - }, { "title": "Use fieldset and legend elements where appropriate.", "checkboxId": "use-fieldset-and-legend", @@ -374,14 +272,6 @@ "description": "This provides a way for assistive technology users to quickly have a high-level understanding of what issues are present in the form. This is especially important for larger forms with many inputs. Make sure that each reported error also has a link to the corresponding field with invalid input.", "wcagLevel": "A" }, - { - "title": "Associate input error messaging with the input it corresponds to.", - "checkboxId": "associate-error-messages", - "wcag": "3.3.1 Error Identification", - "url": "https://www.w3.org/TR/UNDERSTANDING-WCAG20/minimize-error-identified.html", - "description": "Techniques such as using aria-describedby allow people who use assistive technology to more easily understand the difference between the input and the error message associated with it.", - "wcagLevel": "A" - }, { "title": "Make sure that error, warning, and success states are not visually communicated by just color.", "checkboxId": "dont-use-just-color-for-states", @@ -403,14 +293,6 @@ "description": "Unexpected video and audio can be distracting and disruptive, especially for certain kinds of cognitive disability such as ADHD. Certain kinds of autoplaying video and animation can be a trigger for vestibular and seizure disorders.", "wcagLevel": "A" }, - { - "title": "Ensure that media controls use appropriate markup.", - "checkboxId": "media-controls-use-appropriate-markup", - "wcag": "1.3.1 Info and Relationships", - "url": "https://www.w3.org/TR/UNDERSTANDING-WCAG20/content-structure-separation-programmatic.html", - "description": "Examples include making sure an audio mute button has a pressed toggle state when active, or that a volume slider uses <input type=\"range\">.", - "wcagLevel": "A" - }, { "title": "Check to see that all media can be paused.", "checkboxId": "pause-media", @@ -442,30 +324,9 @@ } ] }, - "audio": { - "preface": "Audio-specific checks.", - "tasks": [ - { - "title": "Confirm that transcripts are available.", - "checkboxId": "confirm-transcripts", - "wcag": "1.1.1 Non-text Content", - "url": "https://www.w3.org/TR/UNDERSTANDING-WCAG20/text-equiv-all.html", - "description": " Transcripts allow people who cannot hear to still understand the audio content. It also allows people to digest audio content at a pace that is comfortable to them.", - "wcagLevel": "A" - } - ] - }, "appearance": { "preface": "How your website app content looks in any given situation.", "tasks": [ - { - "title": "Check your content in specialized browsing modes.", - "checkboxId": "check-specialized-modes", - "wcag": "1.4.1 Use of Color", - "url": "https://www.w3.org/TR/UNDERSTANDING-WCAG20/visual-audio-contrast-without-color.html", - "description": "Activate modes such as Windows High Contrast or Inverted Colors. Is your content still legible? Are your icons, borders, links, form fields, and other content still present? Can you distinguish foreground content from the background?", - "wcagLevel": "A" - }, { "title": "Increase text size to 200%.", "checkboxId": "increase-text-size", @@ -598,7 +459,7 @@ "checkboxId": "remove-horizontal-scrolling", "wcag": "1.4.10 Reflow", "url": "https://www.w3.org/WAI/WCAG21/Understanding/reflow.html", - "description": "Requiring someone to scroll horizontally can be difficult for some, irritating for all.", + "description": "Requiring someone to scroll horizontally can be difficult for some, irritating for all. There are some exceptions to this for example: tables, maps, and large graphs", "wcagLevel": "AA" }, {