Repository navigation
feat(Popover): Open as a bottom sheet on phones - #8995
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
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. |
ee16aff to
9f9f33d
Compare
9f9f33d to
4fcad7a
Compare
Docker builds report
|
4fcad7a to
85c4880
Compare
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… modes Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…t jump Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… position styles Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…neModal class Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
39e303e to
9df2864
Compare
There was a problem hiding this comment.
0 issues found across 1 file (changes from recent commits).
Confidence score: 5/5
- Automated review surfaced no issues in the provided summaries.
- No files require special attention.
Requires human review: Shared Popover now becomes a modal bottom sheet on phones for every consumer (PanelSearch and audit ScopeFilter), adding overlay, scroll lock, focus trap, and new dismissal behavior. This is a product/UX and accessibility tradeoff rather than a narrowly scoped fix.
Turn on auto-fix | Re-trigger cubic
Zaimwa9
left a comment
There was a problem hiding this comment.
Just one point of attention flagged related to Chromium (at least) and the reduced motion. It could be worth to fix it
The effect ran before the portal mounted the sheet, so focus stayed on the trigger behind the overlay. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
0 issues found across 1 file (changes from recent commits).
Confidence score: 5/5
- Automated review surfaced no issues in the provided summaries.
- No files require special attention.
Requires human review: Shared Popover now opens as a modal bottom sheet on phones for every consumer (sort menu, audit scope filter), adding overlay, scroll lock, focus trap, and new dismissal behavior — a product/UX and accessibility tradeoff rather than a bounded fix.
Turn on auto-fix | Re-trigger cubic
docs/if required so people know about the feature.Changes
Below 768px,
Popovercontent opens in a bottom sheet instead of an anchored panel: overlay, scroll lock, focus trap, Escape and outside tap to close. The trigger getsaria-haspopup="dialog"andaria-expanded.IconButton), which takes focus on open. Phones have no Escape key, so outside tap was the only way out.BottomSheetis internal toPopoverfor now; it moves tobase/when something else needs it.useBreakpoint('isPhone')matches Bootstrap's md breakpoint, so JS and SCSS switch at the same width.This applies to every
Popoveron purpose, so no consumer has to opt in. Consumers today: the audit log scope filter (ScopeFilter, behindorganisation_audit_log) and thePanelSearchsort menu. Both now open as a sheet on phones.How did you test this code?
Popover / MobileSheetopens as a sheet;Defaultstays anchored.matchesBreakpoint.PanelSearchsort menu (Projects page) at phone width: opens as a "Sort" sheet, picking an option sorts and closes it.