forked from leptos-rs/leptos
-
Notifications
You must be signed in to change notification settings - Fork 0
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 leptos-rs#2744 and leptos-rs#2770
- Loading branch information
1 parent
1f4c410
commit b055184
Showing
1 changed file
with
167 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