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 committed 2026-01-26 17:27:24 +08:00
1 parent a8a1873b27
commit f049ed52cb
1 file changed
+1 -1
+1 -1
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}}