Skip to content

[RELEASE] fix: active nav state via direct DOM (bypasses broken prop chain)#3309

Merged
drewstone merged 1 commit into
developfrom
fix/nav-active-dom-injection
Jun 25, 2026
Merged

[RELEASE] fix: active nav state via direct DOM (bypasses broken prop chain)#3309
drewstone merged 1 commit into
developfrom
fix/nav-active-dom-injection

Conversation

@drewstone

Copy link
Copy Markdown
Contributor

Direct DOM injection in Layout useEffect — marks active sidebar item by matching URL pathname. Guaranteed visible. CSS: indigo bg + white text + left border.

…roken prop chain)

The shared SideBar component's isActive prop chain wasn't reliably setting
the active state on cloud's routes. This bypasses it entirely: Layout runs
a useEffect that queries the DOM for sidebar links, matches hrefs against
window.location.pathname, and adds a visible .cloud-nav-active class.

GUARANTEED to work — no React prop chain, no data-attributes, no shared
component internals. Just direct DOM + CSS.
@drewstone drewstone requested a review from AtelyPham as a code owner June 25, 2026 00:00

@tangletools tangletools left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Auto-approved PR — b1b9f0bb

Blanket team auto-approval is enabled for this reviewer service.
The full PR reviewer audit still runs separately and will publish findings if it detects issues.

tangletools · auto-approval · reason: blanket_auto_approve · 2026-06-25T00:00:39Z

@drewstone drewstone merged commit 9484fc9 into develop Jun 25, 2026
9 checks passed
@drewstone drewstone deleted the fix/nav-active-dom-injection branch June 25, 2026 00:03
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.

2 participants