Skip to main content
Accessibility for users with disabilities

Rules

Access Keys

Checks that accesskey values are unique

ARIA Allowed Attributes

Checks that ARIA attributes are allowed on their elements

ARIA Command Name

Checks that command elements have accessible names

ARIA Dialog Name

Checks that dialog elements have accessible names

ARIA Hidden Body

Ensures document body is not set to aria-hidden

ARIA Hidden Focus

Ensures aria-hidden elements do not contain focusable content

ARIA Input Field Name

Checks that input fields have accessible names

ARIA Labels

Checks that interactive elements have accessible names

ARIA Meter Name

Checks that meter elements have accessible names

ARIA Progressbar Name

Checks that progressbar elements have accessible names

ARIA Required Attributes

Checks that elements have required ARIA attributes for their roles

ARIA Required Children

Checks that elements with certain roles have required child roles

ARIA Required Parent

Checks that elements with certain roles have required parent roles

ARIA Text

Checks that elements with role=‘text’ have no focusable descendants

ARIA Toggle Field Name

Checks that toggle fields (checkbox, radio, switch) have accessible names

ARIA Tooltip Name

Checks that tooltip elements have accessible names

ARIA Treeitem Name

Checks that treeitem elements have accessible names

ARIA Valid Attribute Values

Checks for valid values in ARIA attributes

ARIA Valid Attributes

Checks for valid ARIA attribute names

ARIA Valid Roles

Checks for valid ARIA role values

Button Name

Checks that all buttons have accessible names

Color Contrast

Checks for color contrast issues in styles and classes

Definition List Item

Checks that dt and dd elements are inside a dl

Definition List Structure

Checks that definition lists contain only dt and dd elements

Deprecated ARIA Roles

Checks for deprecated or abstract ARIA roles

Duplicate ID Active

Checks that active, focusable elements have unique IDs

Duplicate ID ARIA

Checks that IDs used in ARIA attributes are unique

Empty Headings

Checks that heading elements have visible content

Focus Visible

Checks for focus indicator styles

Form Labels

Checks that form inputs have associated labels

Frame Title

Checks that iframes and frames have title attributes

Heading Order

Checks that heading levels don’t skip

HTML Lang Valid

Checks that the html lang attribute has a valid language code

HTML XML Lang Mismatch

Checks that lang and xml:lang attributes match on html element

Identical Links Same Purpose

Checks that links with identical text go to the same destination

Input Image Alt

Checks that input type=‘image’ elements have alt text

Label Content Name Mismatch

Checks that visible label text is part of accessible name

Landmark Regions

Checks for proper landmark regions (main, nav, footer)

Link in Text Block

Checks that links in text blocks are visually distinguishable

Link Text

Checks for descriptive link text

List Item Context

Checks that li elements are inside ul, ol, or menu

List Structure

Checks that ul and ol elements contain only li elements

Meta Refresh

Checks for meta refresh redirects that can disorient users

Multiple Labels

Checks that form fields don’t have multiple labels

Object Alt Text

Checks that object elements have alternative content

One Main Landmark

Checks that the page has exactly one main landmark

Paste Inputs

Detects form inputs that prevent pasting

Redundant Image Alt

Checks that image alt text is not redundant with surrounding text

Select Name

Checks that select elements have accessible names

Skip Link

Checks for bypass mechanisms for keyboard navigation

Tabindex Values

Checks for appropriate tabindex values

Table Cell Headers

Checks that td headers attribute references valid th ids

Table Duplicate Name

Checks that data tables have unique accessible names

Table Headers

Checks that data tables have proper headers

TH Has Data Cells

Checks that table headers have associated data cells

Touch Targets

Checks for minimum touch target sizing hints

Valid Lang Attributes

Checks that all lang attributes on the page have valid values

Video Captions

Checks that videos have captions or transcripts

Zoom Disabled

Checks if viewport meta tag disables user zoom

Disable All Accessibility Rules

squirrel.toml
[rules]
disable = ["a11y/*"]