Development record
When the site build inlines an SVG picture, the alt text the docs page gives it is dropped: the SVG branch of the asset renderer (internal/core/site/assets.go:425-432) returns the drawing wrapped in a span and never uses alt, so the picture's accessible name on the site is whatever the file itself declares (docs/explanation/artefacts.md:13 gives The brief while docs/assets/img/artefact-brief.svg declares brief), and nothing requires an inlined SVG to declare a name at all, so a drawing without one would reach the site unnamed while its page's alt is discarded.
issueopenminoriss-2610241550257430
When the site build inlines an SVG picture, the alt text the docs page gives it is dropped: the SVG branch of the asset renderer (internal/core/site/assets.go:425-432) returns the drawing wrapped in a span and never uses alt, so the picture's accessible name on the site is whatever the file itself declares (docs/explanation/artefacts.md:13 gives The brief while docs/assets/img/artefact-brief.svg declares brief), and nothing requires an inlined SVG to declare a name at all, so a drawing without one would reach the site unnamed while its page's alt is discarded.
Frontmatter
| id | iss-2610241550257430 |
|---|---|
| type | issue |
| lifecycle | open |
| severity | minor |
.abcd/work/issues/open/iss-2610241550257430-when-the-site-build-inlines-an-svg.md
open on GitHub ↗ · commit history ↗