Allow custom transitions for modals
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- react, typescript
- Domain
- frontend
Research direction
Start at the react-bootstrap/Modal implementation and compare its prop handling with react-overlay/Modal. Trace how transition, backdropTransition, renderBackdrop, and handleHidden are handled. Done means the requested custom modal transitions work without requiring a separate bootstrap-specific Modal implementation.
Written by the indexing model from the issue text.
Description
Is your feature request related to a problem? Please describe
I'm trying to make a custom transition for the modal, which is possible with the Modal component from react-overlay (react-overlay/Modal), but not the bootstrap specific implementation in react-bootstrap (react-bootstrap/Modal).
Describe the solution you'd like
I think that the best solution would be to forward props like transition, backdropTransition, renderBackdrop etc. to the react-overlay/Model, in the react-bootstrap/Modal implementation. Right now all extra props are forwarded to the Dialog component instead.
Describe alternatives you've considered
I'm currently implementing my own bootstrap specific Modal component that uses the react-overlay/Modal component behind the scenes. My first thought was to set the dialogAs and wrap the Dialog in a transition component, but that won't work because of the way react-overlay/Modal handles the exit transition (see handleHidden).
Additional context
I'm using react-bootstrap version v1.0.0-beta.14
- Dominant language
- TypeScript
- Stars
- 22.6k
- Forks
- 3.6k
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from react-bootstrap/react-bootstrap
-
enhancement
Difficulty 3/5 1-2 days Newbie friendliness 48/100
react-bootstrap/react-bootstrap#6989 ·
-
Difficulty 5/5 Over a week Newbie friendliness 10/100
react-bootstrap/react-bootstrap#6987 · 2 comments · 1 reaction ·
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 55/100
react-bootstrap/react-bootstrap#6985 · 2 comments ·
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 35/100
react-bootstrap/react-bootstrap#6984 ·
-
enhancement
Difficulty 3/5 1-2 days Newbie friendliness 35/100
react-bootstrap/react-bootstrap#6962 · 1 comment ·
All issues in react-bootstrap/react-bootstrap
Similar issues
-
comp/dashboard P3 type/bug
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
NousResearch/hermes-agent#117722 ·
-
clawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster no-stale P3
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Difficulty 1/5 Under an hour Newbie friendliness 76/100
-
code-quality refactoring
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
github/gh-aw-firewall#8816 ·
-
integration:quickjs org:external priority:backlog topic:code-interpreter topic:middleware type:feature
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
langchain-ai/deepagents#6450 ·