Skip to content

[308] fix activation for flowchart icon#310

Open
evan-taylor wants to merge 1 commit intomainfrom
issue-308-flowchart-icon
Open

[308] fix activation for flowchart icon#310
evan-taylor wants to merge 1 commit intomainfrom
issue-308-flowchart-icon

Conversation

@evan-taylor
Copy link
Copy Markdown
Contributor

📌 Summary

Fixes a bug where the flowchart icon was not highlighted when viewing a flowchart page with an ID. The icon now correctly shows as active in both mobile and desktop views when the user is on any ‎/flowchart/:id route.

🔍 Related Issues

Closes #308

🛠 Changes Made

  • Updated ‎isActive logic in ‎MobileHeader.tsx to check if ‎location.pathname.startsWith("/flowchart/")
  • Updated ‎isActive logic in ‎OuterIconSidebar.tsx with the same check

✅ Checklist

  • My code follows the PolyLink Contribution Guidelines.
  • I have tested my changes to ensure they work as expected.
  • I have documented my changes (if applicable).
  • My PR has a clear title and description

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Icon Navigation Highlighting]: Fix the Activation for the Icon Navigation

1 participant