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:
parent
a8a1873b27
commit
f049ed52cb
@ -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}}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user