jojo/templates/base
forgejo-backport-action 7822ed2030 [v15.0/forgejo] Add aria-current="page" to active navbar items (#11969)
**Backport:** https://codeberg.org/forgejo/forgejo/pulls/11887

By setting `aria-current="page"` on the active navbar item we make the information about which one corresponds to the current page available in a non-visual way. Both the attached screen recordings were produced on http://localhost:3000/pulls, so the "Pull requests" link is the active one. In `before.mp4` all the links are announced identically, and in `after.mp4` the "Pull requests" link is announced like this.

> current page, visited, link, Pull requests

### Documentation

- [ ] I created a pull request [to the documentation](https://codeberg.org/forgejo/docs) to explain to Forgejo users how to use this change.
- [ ] I did not document these changes and I do not expect someone else to do it.

### Release notes

- [x] This change will be noticed by a Forgejo user or admin (feature, bug fix, performance, etc.). I suggest to include a release note for this change.
- [ ] This change is not visible to a Forgejo user or admin (refactor, dependency upgrade, etc.). I think there is no need to add a release note for this change.

*The decision if the pull request will be shown in the release notes is up to the mergers / release team.*

The content of the `release-notes/<pull request number>.md` file will serve as the basis for the release notes. If the file does not exist, the title of the pull request will be used instead.

Co-authored-by: Henry Catalini Smith <henry@catalinismith.se>
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/11969
Reviewed-by: Mathieu Fenniak <mfenniak@noreply.codeberg.org>
Co-authored-by: forgejo-backport-action <forgejo-backport-action@noreply.codeberg.org>
Co-committed-by: forgejo-backport-action <forgejo-backport-action@noreply.codeberg.org>
2026-04-03 18:53:23 +02:00
..
alert.tmpl Update module github.com/editorconfig-checker/editorconfig-checker/v2/cmd/editorconfig-checker to v3 2024-08-09 21:03:37 +02:00
alert_details.tmpl Rename Str2html to SanitizeHTML and clarify its behavior (#29516) 2024-03-06 12:10:45 +08:00
disable_form_autofill.tmpl Disable form autofill (#17291) 2021-10-19 01:08:41 +03:00
footer.tmpl feat(ui): make JS asset load error message translatable (#7388) 2025-04-01 16:14:38 +00:00
footer_content.tmpl feat(ui): consistently use AppVerNoMetadata in the footer (#11196) 2026-02-09 05:32:34 +01:00
head.tmpl fix: use strict-origin as referrer policy (#10851) 2026-01-16 00:03:07 +01:00
head_navbar.tmpl [v15.0/forgejo] Add aria-current="page" to active navbar items (#11969) 2026-04-03 18:53:23 +02:00
head_opengraph.tmpl Rewrite OpenGraph Header 2025-01-01 20:43:20 +01:00
head_script.tmpl feat: replace cross origin protection (#9830) 2025-10-29 22:43:22 +01:00
head_style.tmpl Rename the default themes to gitea-light, gitea-dark, gitea-auto (#27419) 2023-10-06 09:46:36 +02:00
modal_actions_confirm.tmpl feat: move more modals to native dialogs (#9636) 2025-10-13 17:48:49 +02:00
paginate.tmpl Remove superflous tw-content-center (#33741) 2025-03-03 23:39:54 +01:00