Prepared Docs

Prepared Docs

⌘K

    Loading navigation…

User

  1. Primitives
  2. Interactable
  3. Accessibility
  4. Disabled State Communication

Interactable

Disabled State Communication

Disabled State Communication

Ensure disabled states are properly communicated.

Native Disabled Attribute

The disabled prop removes elements from tab order and prevents interaction.

Explaining Disabled State

Provide context about why an element is disabled.

Focus Indicators

Ensure clear focus indicators for keyboard navigation.

Visual Focus States

Focus indicators should be clearly visible across different backgrounds.

Active State Communication

Communicate active/selected state to screen readers.

Selected Items in Lists

Indicate which item is currently selected.

Nested Interactive Elements

Handle nested interactivity accessibly.

Event Propagation

Stop propagation to prevent conflicts.

Touch Target Sizes

Ensure adequate touch targets for mobile and accessibility.

Minimum Touch Target Size

Interactive elements should meet minimum size requirements.

Spacing Between Interactive Elements

Provide adequate spacing to prevent mis-taps.

Color and Contrast

Ensure sufficient contrast for interactive elements.

Visual States

Interactive elements should maintain contrast across all states.

Screen Reader Testing

Test interactive elements with screen readers to verify proper announcements.

Expected Announcements

Expected announcement: "View user profile for John Doe, button"

State Announcements

Expected announcement: "Toggle notifications, button, pressed" (when enabled) or "Toggle notifications, button, not pressed" (when disabled)

Previous

Accessibility / ARIA Attributes

Next

Label / Usage

On this page

Disabled State Communication
Native Disabled Attribute
Explaining Disabled State
Focus Indicators
Visual Focus States
Active State Communication
Selected Items in Lists
Nested Interactive Elements
Event Propagation
Touch Target Sizes
Minimum Touch Target Size
Spacing Between Interactive Elements
Color and Contrast
Visual States
Screen Reader Testing
Expected Announcements
State Announcements