Skip to content

fix accessibility of code editor - #950

Merged
SharonStrats merged 3 commits into
stagingfrom
fix/accessibility
Dec 6, 2026
Merged

SharonStrats merged 3 commits into
stagingfrom
fix/accessibility

Conversation

@SharonStrats

Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The accessibility-update test needs read-only coverage that explicitly simulates the state and verifies tabindex: '0' is retained after setReadOnly(true).

1 open issue
What changed in this PR

Improves keyboard accessibility in the shared code editor by keeping read-only content focusable without making it editable.

Changes:

  • Preserves accessibility labels and descriptions when toggling read-only mode.
  • Adds tabindex="0" for read-only content and tests the configuration.
File Description
test/​unit/​codeEditor.test.js Checks read-only focusability and preserved ARIA attributes.
src/​lib/​code-editor/​CodeEditor.ts Centralizes accessibility attributes and updates focusability with editor mode.

Review effort: Balanced

Comment thread test/unit/codeEditor.test.js Resolved
@SharonStrats SharonStrats linked an issue Dec 6, 2026 that may be closed by this pull request
Update accessibility settings for the code editor to reflect read-only state.

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@SharonStrats SharonStrats moved this to In review in SolidOS NLNet UI Dec 6, 2026
@SharonStrats
SharonStrats merged commit 6a908dc into staging Dec 6, 2026
9 checks passed
@github-project-automation github-project-automation Bot moved this from In review to Done in SolidOS NLNet UI Dec 6, 2026
@SharonStrats
SharonStrats deleted the fix/accessibility branch December 6, 2026 06:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Improve Code Editor Accessibility and Keyboard Focus

2 participants