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

Wrong aria-current value in navbar #3470

Open
cfranceschi-ledger opened this issue Oct 16, 2024 · 4 comments
Open

Wrong aria-current value in navbar #3470

cfranceschi-ledger opened this issue Oct 16, 2024 · 4 comments
Labels
question Further information is requested

Comments

@cfranceschi-ledger
Copy link

cfranceschi-ledger commented Oct 16, 2024

In my Navbar, I have most elements under the "Documentation" menu, and just one component outside of the menu.
Screenshot 2024-10-16 at 14 30 54

This component, called "Dev tracks" is under the docs folder.
Screenshot 2024-10-16 at 14 29 12

Here is how I organised the meta file:
Screenshot 2024-10-16 at 14 27 11

My problem is the "Dev tracks" component is always defined as "aria-current=true".

You can check it here.

@cfranceschi-ledger cfranceschi-ledger added the bug Something isn't working label Oct 16, 2024
@dimaMachina
Copy link
Collaborator

Seems you use Nextra 2, update to Nextra 3 first and reply if you still have an issue

@dimaMachina dimaMachina added question Further information is requested and removed bug Something isn't working labels Oct 16, 2024
@arno-fukuda
Copy link
Contributor

@cfranceschi-ledger, you can work around it by creating a placeholder mdx file under pages.
In your case create a pages/dev-tracks.mdx file and leave it empty.

@cfranceschi-ledger
Copy link
Author

Hello,
@dimaMachina I updated but it did not fix it.
I tried @arno-fukuda's workaround and it does the trick. Even though it is not ideal to have this useless page, it will work for now.
I'm closing the issue.

@dimaMachina
Copy link
Collaborator

Will reopen to fix it, ty for update

@dimaMachina dimaMachina reopened this Oct 24, 2024
Repository owner deleted a comment Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants