Skip to content

Move accessibility attributes to contentDOM#1334

Merged
cyanzhong merged 1 commit intomainfrom
develop
Apr 6, 2026
Merged

Move accessibility attributes to contentDOM#1334
cyanzhong merged 1 commit intomainfrom
develop

Conversation

@cyanzhong
Copy link
Copy Markdown
Contributor

No description provided.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR improves editor accessibility by moving ARIA semantics from the outer #editor container to CodeMirror’s actual editable contentDOM, ensuring assistive technologies attach the textbox role to the correct element.

Changes:

  • Add EditorView.contentAttributes extension to apply role="textbox" and aria-multiline="true" to the editor’s contentDOM.
  • Remove the same attributes from the static #editor container in index.html.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
CoreEditor/src/extensions.ts Adds CodeMirror contentDOM accessibility attributes via EditorView.contentAttributes.
CoreEditor/index.html Removes ARIA/role attributes from the wrapper div now that they’re applied in-editor.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@cyanzhong cyanzhong merged commit b846a2a into main Apr 6, 2026
5 checks passed
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