add alt text on hover for figure image

This commit is contained in:
Jean-Marie 'Histausse' Mineau 2026-04-16 22:27:04 +02:00
parent 11a15855bc
commit 68b1e3d690
Signed by: histausse
GPG key ID: B66AEEDA9B645AD2
2 changed files with 30 additions and 1 deletions

View file

@ -23,3 +23,4 @@
// Role 'radiogroup' is needed because of bug in chromium with screenreaders (https://lyra.horse/blog/2025/08/you-dont-need-js/#fn:10)
html.elem("image-magnifier-group", attrs: (role: "radiogroup"), body)
}
#let image-alt-group = html.elem.with("image-alt-group")