Consistent Identification of functional components
mainThe goal of consistent identification is to ensure that functional components (like buttons, links, or toggles) that appear repeatedly across a set of web pages use consistent labels or accessible names.
Key Principles
- Predictability: Users, especially those using screen readers, rely on familiarity. If a function has different labels on different pages, it increases cognitive load and makes navigation difficult.
- Scope: This criterion specifically addresses consistency within a set of web pages where elements are repeated. While consistency within a single page is recommended, this rule focuses on the relationship between multiple pages.
- Text Alternatives: Consistency applies to icons and non-text items as well. If icons perform the same function, their text alternatives must be consistent.
- Functional Distinction: If components have different functions, they should have different labels. Consistency is required for components that perform the same function.
Examples of Success vs. Failure
- Success (Consistent but not identical): A printer icon labeled "Print receipt" in one section and "Print invoice" in another is consistent because it follows a predictable pattern ("Print [item]") for the same type of action.
- Success (Consistent references): Links labeled "page 2", "page 3", etc., are considered consistent because they follow a predictable pattern for navigation.
- Failure (Inconsistent labels for same function): A "search" button on one page and a "find" button on another page that perform the same task is a failure.
- Failure (Inconsistent accessible names): Two buttons that look identical visually but have different
aria-labelattributes are a failure, as assistive technology will announce them differently.