Skip to content

Conversation

@DHAWAN13
Copy link

@DHAWAN13 DHAWAN13 commented Dec 18, 2025

Problem

Flowchart SVG output lacks accessibility metadata, making diagrams unreadable for screen readers.

Solution (Accessibility Enhancements)

This PR adds:

  • role="img" to the root SVG
  • <title> and <desc> elements
  • aria-labelledby to associate accessible labels

The implementation reuses existing flowchart database accessibility metadata
(accTitle, accDescription) to populate SVG <title> and <desc> elements,
and does not affect visual rendering.

Result

Flowchart diagrams are now accessible to assistive technologies while remaining backward-compatible.

@changeset-bot
Copy link

changeset-bot bot commented Dec 18, 2025

🦋 Changeset detected

Latest commit: be5e6ac

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
mermaid Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@netlify
Copy link

netlify bot commented Dec 18, 2025

Deploy Preview for mermaid-js failed.

Name Link
🔨 Latest commit be5e6ac
🔍 Latest deploy log https://app.netlify.com/projects/mermaid-js/deploys/6943ff550e123e0008087b04

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.

1 participant