Skip to content

Add aria-label to graphviz object#14311

Draft
kartben wants to merge 1 commit intosphinx-doc:masterfrom
kartben:graphviz_alt
Draft

Add aria-label to graphviz object#14311
kartben wants to merge 1 commit intosphinx-doc:masterfrom
kartben:graphviz_alt

Conversation

@kartben
Copy link
Contributor

@kartben kartben commented Feb 17, 2026

The "alt" attribute for a graphviz object is now also added as an "aria-label" attribute to the graphviz svg object, and not just as a fallback element within the object element. This allows screen readers to properly pick it up.

Purpose

Ensure HTML pages using .. graphviz:: are accessible.

References

N/A

The "alt" attribute for a graphviz object is now also added as an
"aria-label" attribute to the graphviz svg object, and not just as a
fallback element within the object element. This allows screen readers
to properly pick it up.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
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