feat: enhance DropdownMenu with hover trigger support#127
feat: enhance DropdownMenu with hover trigger support#127gene9831 merged 2 commits intoopentiny:release/v0.2.xfrom
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the WalkthroughThe changes introduce a "hover" trigger mode to the dropdown menu component, update its demo and documentation to reflect the new behavior, and refactor the component's logic and styling to support hover interactions and CSS variable-based customization. Type definitions and event handling were also adjusted for improved flexibility. Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant DropdownMenu
participant Console
User->>DropdownMenu: Hover over trigger (trigger="hover")
DropdownMenu->>DropdownMenu: Detect hover (with delay)
DropdownMenu->>DropdownMenu: Show dropdown menu
User->>DropdownMenu: Move cursor away (trigger="hover")
DropdownMenu->>DropdownMenu: Detect hover leave (with delay)
DropdownMenu->>DropdownMenu: Hide dropdown menu
User->>DropdownMenu: Click menu item
DropdownMenu->>Console: Log clicked item
Poem
✨ Finishing Touches🧪 Generate Unit Tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
- Added support for 'hover' trigger in the DropdownMenu component, allowing menus to display on hover events. - Updated documentation to reflect the new trigger options and their descriptions. - Refactored event handling to manage hover states and click events more effectively. - Improved styling variables for better customization of dropdown appearance.
087392c to
6a13d92
Compare
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
* feat: enhance DropdownMenu with hover trigger support - Added support for 'hover' trigger in the DropdownMenu component, allowing menus to display on hover events. - Updated documentation to reflect the new trigger options and their descriptions. - Refactored event handling to manage hover states and click events more effectively. - Improved styling variables for better customization of dropdown appearance. * feat: add TODO for safePolygon implementation in DropdownMenu hover trigger
Summary by CodeRabbit
New Features
Documentation
Refactor
Style