Bug Description
Toolbar buttons in the Mermaid integration contain inline icons that are exposed to the accessibility tree, triggering the warning: "Content with images must be labeled." The buttons themselves have labels, but the SVGs inside lack proper aria-hidden attributes.
Steps to Reproduce
- Render Mermaid content via streamdown/mermaid
- Inspect toolbar buttons adjacent to the diagram
- Run accessibility audit(Firefox Accessibility Inspector, axe DevTools)
Expected Behavior
Decorative SVG icons should be hidden from the accessibility tree.
Actual Behavior
The toolbar buttons around Mermaid-rendered content have no text alternative for screen reader users.
Code Sample
Streamdown Version
2.5.0
React Version
19.0.0
Node.js Version
No response
Browser(s)
No response
Operating System
None
Additional Context
No response