Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A components aria-current attribute not getting set in nested routes #3196

Closed
TERRORW0LF opened this issue Nov 5, 2024 · 1 comment
Closed
Labels
bug Something isn't working

Comments

@TERRORW0LF
Copy link

Describe the bug
When placing links with the A component inside a nested route the aria-current attribute does not get set on client side navigation.

Leptos Dependencies

leptos = { version = "0.7.0-rc1", features = ["nightly"] }
leptos_axum = { version = "0.7.0-rc1", optional = true }
leptos_meta = { version = "0.7.0-rc1" }
leptos_router = { version = "0.7.0-rc1", features = ["nightly"] }

To Reproduce
Steps to reproduce the behavior:

  1. Set up the router example in an start-axum-0.7 template (remove tracing and futures)
  2. Remove routing progress (causes bugs which alter this one)
  3. Run cargo leptos watch
  4. Open the site and navigate to a contact
  5. Open the browser's inspector and select the contact's a tag
  6. The aria-current="page" attribute is not there

Expected behavior
The aria-current="page" attribute gets applied to the a tag of the current contact

@gbj gbj added the bug Something isn't working label Nov 6, 2024
@codewing
Copy link

codewing commented Nov 8, 2024

FYI: Just came across a variation of this bug in 0.6.15 as well - but for me it sets the current attribute on both A tags

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants