Skip to content

fix: add tabIndex on base code block#214

Merged
lawreka merged 1 commit intomainfrom
kathryn/fix-codeblock-a11y
Mar 13, 2026
Merged

fix: add tabIndex on base code block#214
lawreka merged 1 commit intomainfrom
kathryn/fix-codeblock-a11y

Conversation

@lawreka
Copy link
Contributor

@lawreka lawreka commented Mar 13, 2026

Summary

  • different linters (biome vs. axe) are fighting - client app (axe) says not having tabIndex here is an accessibility regressions, so repressing the biome error

Test Plan

  • no visible changes, code blocks should be more keyboard-accessible

Note

Low Risk
Small, isolated accessibility change that only affects focus behavior on the code block container.

Overview
Adds tabIndex={0} to the BaseCodeBlock root container so scrollable code blocks can receive keyboard focus, aligning with axe accessibility expectations.

Includes a biome lint suppression comment to allow the non-interactive tabindex in this specific case.

Written by Cursor Bugbot for commit 1bc1c23. This will update automatically on new commits. Configure here.

@lawreka lawreka merged commit 8b8cd4e into main Mar 13, 2026
3 checks passed
@lawreka lawreka deleted the kathryn/fix-codeblock-a11y branch March 13, 2026 00:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants