-
-
Notifications
You must be signed in to change notification settings - Fork 657
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: a more robust aria-current algorithm for A
- Anchors with href ending with a single trailing slash (e.g. `<A href="/item/">`) will now get the `aria-current="page"` marker set when navigating under its subpaths such as `/item/1`. - Also fixes multi-level matching. - Refactored the check to its own function. - Include test cases for the algorithm. - Fixes #2744 and #2770
- Loading branch information
1 parent
1f4c410
commit bfe4ac4
Showing
1 changed file
with
126 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters