Skip to content

Wrap nav in sticky LiveView to preserve sidebar state across navigation#136

Draft
tfwright wants to merge 1 commit intomainfrom
sticky-nav
Draft

Wrap nav in sticky LiveView to preserve sidebar state across navigation#136
tfwright wants to merge 1 commit intomainfrom
sticky-nav

Conversation

@tfwright
Copy link
Owner

No description provided.

- Add Nav.Wrapper sticky LiveView that hosts the nav LiveComponent
  and Jobs LiveView, preserving DOM state across navigate events
- Broadcast URI via attach_hook on handle_params so the sticky nav
  can update active link highlighting via PubSub
- Update CSS selectors from sibling (~) to :has() since the sidebar
  toggle checkbox now lives inside the sticky wrapper
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.

1 participant