Skip to content

Conversation

@navidshad
Copy link
Collaborator

@navidshad navidshad commented Dec 18, 2025

🏷️ PR Title:
Enhance Drawer component with scroll locking functionality

πŸ“‹ Summary

This PR adds scroll locking functionality to the Drawer component, preventing background content from scrolling when the drawer is open. This improves user experience by keeping focus on the drawer content.

πŸ”— Related Tasks

#06e1cef - Enhance Drawer component with scroll locking functionality

πŸ“ Additional Details

The implementation ensures that the scroll lock is applied and removed appropriately as the drawer opens and closes, maintaining accessibility and usability standards.

πŸ“œ Commit List

06e1cef feat: Enhance Drawer component with scroll locking functionality

- Added `lockScroll` prop to control body scroll behavior when the drawer is open.
- Implemented `lockScroll` and `unlockScroll` methods to manage overflow style.
- Ensured scroll is unlocked when the component is destroyed.
- Updated usage in SongFloatingToolbox to reflect the new prop.
@navidshad navidshad merged commit dc45dd4 into main Dec 18, 2025
1 check passed
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