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