0
0
mirror of https://github.com/go-gitea/gitea.git synced 2026-05-10 09:41:52 +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}} {{end}}
</div> </div>
{{if .FileSidebarHTML}} {{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}} {{.FileSidebarHTML}}
</div> </div>
{{end}} {{end}}