0
0
mirror of https://github.com/go-gitea/gitea.git synced 2026-04-09 15:15:39 +02:00

a11y: add ARIA attributes to TOC sidebar for accessibility

Add role="navigation" and aria-label to the file view sidebar panel
to improve accessibility for screen readers and assistive technologies.
This commit is contained in:
hamki 2026-01-26 17:27:24 +08:00
parent a8a1873b27
commit f049ed52cb
No known key found for this signature in database
GPG Key ID: 092D4EC7F4DECB68

View File

@ -143,7 +143,7 @@
{{end}}
</div>
{{if .FileSidebarHTML}}
<div class="file-view-sidebar markup sidebar-panel-hidden">
<div class="file-view-sidebar markup sidebar-panel-hidden" role="navigation" aria-label="{{ctx.Locale.Tr "toc"}}">
{{.FileSidebarHTML}}
</div>
{{end}}