Closed seahindeniz closed 1 month ago
Home page's anchor component <A> class doesn't toggle inactive/active, but other pages does this.
<A>
inactive
active
When switching to another route, inactive/active class must be toggled for home page
Steps:
hackernews
pnpm dev
Video:
https://github.com/solidjs/solid-start/assets/5789670/cbb11c45-0faf-49b6-b9e4-c4a5681c6f96
This will affect the class name based styling
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
Yeah it is because it isn't set to exact match thanks for pointing it out.
Duplicates
Latest version
Current behavior 😯
Home page's anchor component
<A>
class doesn't toggleinactive
/active
, but other pages does this.Expected behavior 🤔
When switching to another route,
inactive
/active
class must be toggled for home pageSteps to reproduce 🕹
Steps:
hackernews
template/examplepnpm dev
and open in browserVideo:
https://github.com/solidjs/solid-start/assets/5789670/cbb11c45-0faf-49b6-b9e4-c4a5681c6f96
Context 🔦
This will affect the class name based styling
Your environment 🌎