DEV Community

vAIber
vAIber

Posted on

Navigating the Nuances: A Deep Dive into WCAG 2.2's New Success Criteria

Navigating the Nuances: A Deep Dive into WCAG 2.2's New Success Criteria

The digital landscape is ever-evolving, and with it, our understanding of web accessibility. The release of the Web Content Accessibility Guidelines (WCAG) 2.2 in October 2023 marks another significant step forward in our collective journey towards a more inclusive internet. For developers, designers, QA testers, and project managers already versed in WCAG 2.1, this update isn't just a minor revision; it's a crucial expansion designed to address more nuanced barriers faced by users with disabilities. This masterclass will illuminate the new success criteria (SC), offering practical insights to ensure your digital products are not just compliant, but truly accessible.

WCAG 2.2 builds upon the robust foundation of 2.1, introducing new criteria and modifying existing ones to enhance usability for a wider range of users, particularly those with cognitive or learning disabilities, low vision, and motor disabilities. It doesn't deprecate 2.1; rather, it extends it. Adopting 2.2 is a clear statement that your organization is committed to the forefront of digital inclusion and to mastering web accessibility.

Abstract representation of interconnected digital pathways leading to accessible web design.

Unpacking the New Success Criteria: A Comprehensive Breakdown

WCAG 2.2 introduces several new success criteria, each targeting specific accessibility hurdles. Let's explore them in detail.

2.4.11 Focus Not Obscured (Minimum) (AA)

  • Purpose and User Problem: This criterion ensures that when a user interface component receives keyboard focus, it is not entirely hidden by author-created content. Users who rely on keyboard navigation (e.g., those with motor disabilities or visual impairments using screen readers) need to see where their focus is. If focused elements are obscured by sticky headers/footers, non-modal dialogs, or other content, they can lose their place and become unable to interact with the page.
  • Practical Examples:

    • Developers: Ensure that sticky headers or footers do not cover focused elements like navigation links or form fields. Use CSS scroll-padding-top to offset the scroll position if you have fixed headers.

      /* Example for a fixed header */
      :root {
        scroll-padding-top: 60px; /* Adjust to your header's height */
      }
      
    • Designers: When designing features like cookie banners or chat widgets, ensure they don't persistently cover focusable elements when the keyboard is used for navigation.

  • Common Pitfalls: Overlapping non-modal dialogs, cookie banners that partially obscure focused items, or complex layouts where focused elements can scroll behind other fixed-position content.

  • Testing Methodologies:

    • Manual: Tab through all interactive elements on a page. Verify that the focused element is at least partially visible at all times. Test with different viewport sizes.
    • Automated: Some tools might highlight potential issues, but manual verification is crucial due to the contextual nature of content obscuring focus.

2.5.7 Dragging Movements (AA)

  • Purpose and User Problem: This SC addresses the challenge some users face with drag-and-drop interfaces. Users with motor impairments, tremors, or those using alternative input devices (like head pointers or eye-gaze systems) may find precise dragging difficult or impossible. The criterion mandates that if dragging is an essential part of an interaction, an alternative single-pointer method must be provided.
  • Practical Examples:

    • Developers: For a Kanban board where tasks are moved by dragging, provide alternative keyboard controls (e.g., arrow keys to select a task, then a menu to "Move to Next Column") or simple click/tap buttons to move items.

      <!-- Simplified Example for draggable item alternative -->
      <div class="task" id="task1">
        <span>Task 1</span>
        <button onclick="moveTask('task1', 'up')">Move Up</button>
        <button onclick="moveTask('task1', 'down')">Move Down</button>
      </div>
      
    • Designers: When designing features like sliders or sortable lists, include clear visual affordances for non-dragging interactions, such as +/– buttons for sliders or up/down arrows for list items.

  • Common Pitfalls: Assuming all users can perform precise dragging; not providing visible alternative controls; alternatives that are hard to discover or use.

  • Testing Methodologies:

    • Manual: Identify all dragging interactions. Verify that each has a single-pointer alternative (e.g., clicking buttons). Test that the alternative is functionally equivalent and easy to use.
    • User Testing: Involve users with motor disabilities to assess the usability of the provided alternatives.

Split screen showing a user struggling with dragging on one side, and easily using click-button alternatives on the other.

2.5.8 Target Size (Minimum) (AA)

  • Purpose and User Problem: Small interactive targets (buttons, links, icons) can be difficult for many users to activate accurately, especially those with motor impairments, users on touch devices with less precise input, or even users in distracting environments. This SC specifies a minimum target size or sufficient spacing around targets.
  • Practical Examples:

    • Developers & Designers: Ensure that interactive elements have a minimum target size of 24 by 24 CSS pixels. If targets are smaller, they must be adequately spaced from adjacent targets. Consider padding within a link or button to increase its clickable area without necessarily increasing the visible icon size.

      .icon-button {
        width: 24px;
        height: 24px;
        /* If icon is smaller, use padding to meet size */
        padding: 4px; /* Example if icon itself is 16x16px */
        display: inline-flex;
        align-items: center;
        justify-content: center;
      }
      /* Or ensure spacing if inline and small */
      .small-inline-link + .small-inline-link {
        margin-left: 12px; /* Sufficient spacing */
      }
      
  • Common Pitfalls: Tiny icons for actions, closely packed links in footers or breadcrumbs, radio buttons/checkboxes with very small hit areas. Exceptions exist for inline links within text blocks or where the user agent controls the target size.

  • Testing Methodologies:

    • Manual: Use browser developer tools to inspect the dimensions of interactive elements. Visually assess spacing between targets.
    • Automated: Tools like axe-core can help identify some target size issues, but manual checks are essential for context and spacing.
    • Design Phase: Use design tools with grids and measurement features to ensure targets meet requirements from the outset.

Smartphone screen showing small, clustered interactive elements (fail) vs. well-spaced, larger elements (pass).

3.2.6 Consistent Help (A)

  • Purpose and User Problem: Users, especially those with cognitive or learning disabilities, benefit greatly from having help mechanisms (like contact information, FAQs, or support chat) located consistently across a set of web pages. This predictability reduces cognitive load and makes it easier to find assistance when needed.
  • Practical Examples:
    • Designers & Developers: If a "Help" link, chat widget, or contact phone number is provided, ensure it appears in the same relative place in the visual layout and DOM order on all pages within a set (e.g., always in the header, footer, or as a persistent floating button).
  • Common Pitfalls: Help features available on some pages but not others; help links in different locations on different page templates; inconsistent labeling of help features.
  • Testing Methodologies:
    • Manual: Navigate through different sections and page types of a website. Verify that if help mechanisms are present, they maintain a consistent location and presentation.

3.3.7 Redundant Entry (A)

  • Purpose and User Problem: Users, particularly those with cognitive disabilities or memory impairments, can find it frustrating and error-prone to re-enter the same information multiple times within a single process or session. This SC aims to reduce this burden.
  • Practical Examples:
    • Developers & Designers: For multi-step forms (e.g., a checkout process), if a user has already entered their shipping address, don't require them to re-enter it as their billing address if they indicate it's the same. Allow them to select "same as shipping" or auto-populate the fields. Information should be available for the user to select or it should be auto-populated.
  • Common Pitfalls: Asking for the same name, email, or address multiple times in different parts of a long form without providing an option to reuse previously entered data. This does not apply to re-entry for security purposes (e.g. re-entering password).
  • Testing Methodologies:
    • Manual: Go through multi-step forms and processes. Identify instances where the same information is requested multiple times. Check if the information is auto-populated or available for selection by the user.

3.3.8 Accessible Authentication (Minimum) (AA) / 3.3.9 Accessible Authentication (Enhanced) (AAA)

  • Purpose and User Problem: Many authentication methods (e.g., solving complex puzzles, transcribing distorted text, remembering usernames and passwords) can be significant barriers for users with cognitive disabilities, memory issues, or visual impairments. These SCs require that authentication processes do not rely solely on cognitive function tests, and at AAA, that they don't require memorization of passwords or transcription.
  • Practical Examples (for 3.3.8 Accessible Authentication (Minimum)):
    • Developers & Designers: If a CAPTCHA is used, ensure there's an alternative method that doesn't rely on a cognitive test (e.g., object recognition, sound-based CAPTCHA if it's truly accessible, or a federated login option like "Sign in with Google/Apple"). Allow password managers to fill username/password fields. Avoid puzzles or "I am not a robot" tasks that are purely cognitive challenges without an alternative.
  • Common Pitfalls: Using only image-based CAPTCHAs with no non-visual alternative; timed puzzles; processes that block password managers.
  • Testing Methodologies:
    • Manual: Review all authentication processes. If a cognitive function test is present (e.g., CAPTCHA, puzzle), ensure an accessible alternative method is available and functional. Test compatibility with password managers.

Impact Assessment: Adapting to WCAG 2.2

The introduction of these new criteria will necessitate a review and potential update of existing web properties. Organizations should:

  1. Audit Current Sites and Applications: Identify areas where current implementations fall short of the new SCs. Pay close attention to interactive elements, forms, authentication processes, and the placement of help features.
  2. Update Design Systems and Component Libraries: Incorporate requirements like minimum target sizes and considerations for dragging alternatives directly into your design patterns and reusable components.
  3. Train Teams: Ensure developers, designers, and QA testers are thoroughly familiar with the new SCs, their intent, and practical implementation techniques.
  4. Prioritize Remediation: Based on the audit, create a roadmap for addressing non-compliant areas. Focus first on high-impact areas and those required for your desired conformance level (A, AA).
  5. Integrate into Future Projects: Ensure all new projects are designed and developed with WCAG 2.2 in mind from the outset.

A diverse team of web professionals collaborating around a screen displaying a WCAG 2.2 checklist.

Actionable Takeaways: Your WCAG 2.2 Implementation Checklist

  • [ ] Familiarize Yourself: Read the official WCAG 2.2 documentation for each new Success Criterion.
  • [ ] Review Focus Visibility: Ensure focused elements are never fully obscured by other content (2.4.11).
  • [ ] Provide Dragging Alternatives: For every drag-and-drop interface, offer a single-pointer alternative (2.5.7).
  • [ ] Check Target Sizes: Confirm all interactive targets meet the 24x24 CSS pixel minimum or have adequate spacing (2.5.8).
  • [ ] Standardize Help Location: If help is offered, make sure it's consistently placed (3.2.6).
  • [ ] Minimize Redundant Entry: Allow users to reuse or auto-fill information previously entered in a process (3.3.7).
  • [ ] Simplify Authentication: Avoid cognitive function tests as the sole means of authentication, and ensure alternatives are provided (3.3.8).
  • [ ] Test Thoroughly: Combine automated tools with manual testing and, where possible, user testing with individuals with disabilities.
  • [ ] Document and Train: Update internal guidelines and provide training to ensure ongoing compliance.
  • [ ] Stay Informed: Web accessibility is an ongoing commitment. Keep abreast of best practices and future updates.

By embracing the principles and specific requirements of WCAG 2.2, we can collectively build a web that is more usable, more equitable, and more welcoming to everyone. It's a journey of continuous improvement, and these new criteria provide us with clearer paths to enhance the digital experiences of millions.

Top comments (0)