Commit 5a20b85
Fix bottom tab bar color clipping after comment drawer opens (#14224)
## Summary
The comment drawer rendered a white `Box` overlay over the bottom safe
area
(to color the gap below the `BottomSheetFooter`, which uses
`bottomInset={insets.bottom}`).
That Box was rendered alongside the modal in JSX, so it stayed mounted
after
the drawer was dismissed and covered the bottom tab bar's safe-area
padding —
which uses `surface1` (`neutral.n25`), not pure `white` — producing a
visible
color seam at the bottom of the screen once the drawer had been opened.
The fix only renders the overlay while the drawer is actually visible by
tracking the bottom-sheet index in `onChange` (`index >= 0` ⇒ visible).
- File: `packages/mobile/src/components/comments/CommentDrawer.tsx`
## Test plan
- [ ] Open the app, scroll the trending feed, and confirm the bottom tab
bar's safe-area region matches the bar's `surface1` color (no white seam
at the bottom).
- [ ] Open a track's comments drawer, then dismiss it. Confirm the
bottom tab bar returns to a uniform color (no white strip).
- [ ] Open the comments drawer fully — the area beneath the input footer
should still be white (continuous with the footer), confirming the
overlay still works while the drawer is open.
- [ ] Repeat on iOS and Android with both light and dark themes.
https://claude.ai/code/session_01ALEgYGfS29Q87MXTMqCP2s
---
_Generated by [Claude
Code](https://claude.ai/code/session_01ALEgYGfS29Q87MXTMqCP2s)_
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent 4cf2bee commit 5a20b85
2 files changed
Lines changed: 19 additions & 10 deletions
File tree
- .changeset
- packages/mobile/src/components/comments
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
Lines changed: 14 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
245 | 245 | | |
246 | 246 | | |
247 | 247 | | |
| 248 | + | |
248 | 249 | | |
249 | 250 | | |
250 | 251 | | |
| |||
298 | 299 | | |
299 | 300 | | |
300 | 301 | | |
| 302 | + | |
301 | 303 | | |
302 | 304 | | |
303 | 305 | | |
| |||
360 | 362 | | |
361 | 363 | | |
362 | 364 | | |
363 | | - | |
364 | | - | |
365 | | - | |
366 | | - | |
367 | | - | |
368 | | - | |
369 | | - | |
370 | | - | |
371 | | - | |
372 | | - | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
373 | 377 | | |
374 | 378 | | |
375 | 379 | | |
0 commit comments