feat(wcc-sidebar): add header shadow and scrolled state for sidebar menu to show elevation when content is scrolled

This commit is contained in:
2026-01-04 17:02:15 +00:00
parent 399ef3d508
commit 349d4ba320
3 changed files with 29 additions and 3 deletions

View File

@@ -1,5 +1,13 @@
# Changelog
## 2026-01-04 - 3.7.0 - feat(wcc-sidebar)
add header shadow and scrolled state for sidebar menu to show elevation when content is scrolled
- Introduce isMenuScrolled state to track whether the menu has been scrolled
- Add handleMenuScroll handler and bind it to the menu scroll event
- Apply a 'scrolled' class to .sidebar-header to add box-shadow and border-bottom color with transitions
- Update template to conditionally add scrolled class and attach scroll listener
## 2026-01-04 - 3.6.2 - fix(wcc-sidebar)
use sidebar's internal .menu element for scroll management and expose scrollableContainer getter