Skip to content

a11y: pre tabindex=0 code blocks create keyboard traps #440

@perasperaactual

Description

@perasperaactual

The code_block component adds tabindex="0" to <pre> elements, making them focusable — but Tab cannot escape once focus enters. This is a WCAG 2.1 SC 2.1.2 (No Keyboard Trap) violation. Fix: remove tabindex or ensure a keyboard escape mechanism (e.g. Escape key) exits the block. Affects Getting Started, CLI Reference, and Otter Raft pages. Found in e2e run on PR #437.

Metadata

Metadata

Assignees

No one assigned

    Labels

    accessibilityWeb accessibility (WCAG, a11y)

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions