Repository navigation
fix(a11y): keep notifications clear of dialog actions - #218
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (7)
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughToast notifications now render inside an open modal when a modal toast host is available, and otherwise render in the document body. Both authenticated and public layouts use the shared portal component. Tests cover toast behavior across nested dialog transitions. ChangesToast placement
Priority: ➖ Normal Estimated code review effort: 3 (Moderate) | ~20 minutes Change: Bug fix · Severity of issue fixed: Medium Sequence Diagram(s)sequenceDiagram
participant Layout
participant ToastPortal
participant useToastPortalTarget
participant Modal
participant ToastProvider
Layout->>ToastPortal: Render with locale and messages
ToastPortal->>useToastPortalTarget: Get portal target
Modal-->>useToastPortalTarget: Provide host inside open dialog
useToastPortalTarget-->>ToastPortal: Return dialog host or document.body
ToastPortal->>ToastProvider: Portal provider to target
Merge Risk: ⚪ Minimal · up to The notification placement change is ready to merge after normal checks. The identified dialog-close transition does not block notification dismissal. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
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. Comment |
Persistent notifications at the bottom of a narrow viewport intercepted pointer clicks on modal footer actions. Keep the existing notification store and render its stack inside the active shared dialog, in a bounded scroll area above the footer. Nested dialogs receive the same stack; closing a dialog returns it to its parent or the page.
Errors remain visible, dismissible and inside the dialog's keyboard focus scope. Existing expiry deadlines and persistent notifications survive portal moves.
Fixes #217
Related to #74
Validation:
The 640×450 check covers viewport reflow equivalent to 200% of 1280×900. Actual browser zoom and a screen-reader pass remain part of the final beta verification in #74.
Summary by CodeRabbit