Skip to content

feat: Assess and improve accessibility#198

Open
cheryl7114 wants to merge 4 commits into
serverlessworkflow:mainfrom
cheryl7114:accessibillity-180
Open

feat: Assess and improve accessibility#198
cheryl7114 wants to merge 4 commits into
serverlessworkflow:mainfrom
cheryl7114:accessibillity-180

Conversation

@cheryl7114

Copy link
Copy Markdown
Contributor

Closes #180

Summary

This PR enhances the accessibility of the Editor by adding proper ARIA attributes, semantic HTML roles, and improved screen reader support across key components.

Changes

  • Added lang attribute to root component for language identification
  • Added ARIA labels to interactive controls (minimap toggle, node badges)
  • Added semantic HTML roles (alert, complementary, banner, region, contentinfo)
  • Added aria-live regions for dynamic error announcements
  • Marked decorative icons as aria-hidden

Cheryl Kong added 3 commits June 24, 2026 10:25
Signed-off-by: Cheryl Kong <cherylkong50@gmail.com>
Signed-off-by: Cheryl Kong <cherylkong50@gmail.com>
# Please enter a commit message to explain why this merge is necessary,
# especially if it merges an updated upstream into a topic branch.
#
# Lines starting with '#' will be ignored, and an empty message aborts
# the commit.
Signed-off-by: Cheryl Kong <cherylkong50@gmail.com>
Copilot AI review requested due to automatic review settings June 24, 2026 15:21

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.

Pull request overview

This PR addresses Issue #180 by improving the diagram editor’s accessibility through additional ARIA attributes, improved landmark semantics, and better screen reader support across core UI components.

Changes:

  • Adds language identification to the editor root (lang={locale}).
  • Improves labeling of interactive and informational UI elements (minimap toggle, node badges, side panel).
  • Adds live alert semantics for error rendering and hides selected decorative icons from assistive technologies.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
packages/serverless-workflow-diagram-editor/src/side-panel/SidePanel.tsx Adds landmark roles/labels and hides decorative icons in the side panel UI.
packages/serverless-workflow-diagram-editor/src/react-flow/nodes/Nodes.tsx Adds an accessible label for custom/unknown task badges.
packages/serverless-workflow-diagram-editor/src/react-flow/diagram/Diagram.tsx Adds an ARIA label to the minimap toggle control.
packages/serverless-workflow-diagram-editor/src/diagram-editor/error-pages/ErrorPage.tsx Announces errors via an assertive live alert region.
packages/serverless-workflow-diagram-editor/src/diagram-editor/DiagramEditor.tsx Adds a lang attribute to the editor root container.
.changeset/improve-accessibility.md Publishes the accessibility improvements as a minor release.

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

Comment thread packages/serverless-workflow-diagram-editor/src/side-panel/SidePanel.tsx Outdated
Comment thread packages/serverless-workflow-diagram-editor/src/side-panel/SidePanel.tsx Outdated
@netlify

netlify Bot commented Jun 24, 2026

Copy link
Copy Markdown

Deploy Preview for swf-editor ready!

Name Link
🔨 Latest commit 74843ff
🔍 Latest deploy log https://app.netlify.com/projects/swf-editor/deploys/6a3bfa39cbe8d800083be957
😎 Deploy Preview https://deploy-preview-198--swf-editor.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Signed-off-by: Cheryl Kong <cherylkong50@gmail.com>
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.

feat: Assess and improve accessibility

2 participants