-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add draggable prop of BAIModal to drag modal #2179
Conversation
Coverage report for
|
St.❔ |
Category | Percentage | Covered / Total |
---|---|---|---|
🔴 | Statements | 3.14% (-0.01% 🔻) |
101/3219 |
🔴 | Branches | 3.32% (-0.02% 🔻) |
67/2018 |
🔴 | Functions | 1.55% (-0.01% 🔻) |
17/1097 |
🔴 | Lines | 3.2% (-0.01% 🔻) |
101/3160 |
Test suite run success
20 tests passing in 4 suites.
Report generated by 🧪jest coverage report action from fa07101
This pull request is automatically being deployed by Amplify Hosting (learn more). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I already gave feedback on the Teams channel. But I want to summarize that:
- Make only a specific area next to the title draggable, and do not limit the movable screen area, allowing dragging anywhere on the screen.
- no scroll appears even if a modal goes outside the screen.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thank you
This PR resolves #2149
If you set draggable in BAIModal, you can drag modal.
You can drag only when your mouse cursor is over header.
I also modify close button of width and height in header
you need to
npm install
to install react-draggable2024-01-30.2.39.56.mov
Checklist: (if applicable)