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

[Bug?]: Incorrect classname active on the root page (active/inactive) #1502

Closed
2 tasks done
seahindeniz opened this issue May 24, 2024 · 1 comment
Closed
2 tasks done
Labels
bug Something isn't working

Comments

@seahindeniz
Copy link
Contributor

Duplicates

  • I have searched the existing issues

Latest version

  • I have tested the latest version

Current behavior 😯

Home page's anchor component <A> class doesn't toggle inactive/active, but other pages does this.

Expected behavior 🤔

When switching to another route, inactive/active class must be toggled for home page

Steps to reproduce 🕹

Steps:

  1. Use the hackernews template/example
  2. pnpm dev and open in browser
  3. Switch between pages from the navigate bar

Video:

6d083a71-9dba-4e66-8bad-f71a31d2df6d.mp4

Context 🔦

This will affect the class name based styling

Your environment 🌎

npx -y envinfo --system --binaries --managers

  System:
    OS: Windows 11 10.0.22000
    CPU: (8) x64 Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz
    Memory: 7.52 GB / 23.89 GB
  Binaries:
    Node: 20.12.2 - C:\Program Files\nodejs\node.EXE
    npm: 10.5.0 - C:\Program Files\nodejs\npm.CMD
    pnpm: 9.0.6 - ~\AppData\Local\pnpm\pnpm.EXE
  Managers:
    Cargo: 1.63.0 - ~\.cargo\bin\cargo.EXE
    pip3: 20.2.3 - C:\Python39\Scripts\pip3.EXE
@seahindeniz seahindeniz added the bug Something isn't working label May 24, 2024
@ryansolid
Copy link
Member

Yeah it is because it isn't set to exact match thanks for pointing it out.

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

2 participants