Repository navigation
fix: paint list backdrops with the row background color - #7949
Conversation
|
No actionable comments were generated in the recent review. WalkthroughFive list views now apply background colors through ChangesList background styling
Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix Suggested labels: Suggested reviewers: Merge Risk:
|
Why a grey band showed under the rowsA flowchart TB
subgraph Before
A1["contentContainerStyle: surfaceTint (rows)"] --> B1["FlatList style: surfaceNeutral, or none → SafeAreaView surfaceHover"]
end
subgraph After
A2["contentContainerStyle: padding only"] --> B2["FlatList style: row color"]
end
Every affected list gets the same change: move the background from the content area to the list. - contentContainerStyle={{ backgroundColor: listBackgroundColor, paddingBottom: bottom }}
+ style={{ backgroundColor: listBackgroundColor }}
+ contentContainerStyle={{ paddingBottom: bottom }}
RoomsListView also drops the |
c9e90be to
d7d0359
Compare
Proposed changes
Some lists painted a different grey below their last row than behind the rows. That band shows when the list is shorter than the screen, and on iOS 26 under the bottom toolbar.
The background now goes on the list itself rather than only on its content area, using the color the rows sit on:
surfaceNeutralbehind asurfaceTintcontent area. It is nowsurfaceTinton every theme, the same as Android and older iOS.surfaceHovershowed below the rows. It now uses the rows'surfaceTint.contentContainerStyletostyle.On iOS 26 the rooms list header is transparent, so the area behind the large title and search bar now shows
surfaceTintinstead ofsurfaceNeutral. This is intended: it is the same color as the rows, and the same as the other screens with a transparent header. Pull to refresh still triggers.Issue(s)
https://rocketchat.atlassian.net/browse/NATIVE-2028
How to test or reproduce
Screenshots
iOS 26
Android
Types of changes
Checklist
Further comments
Lists that put white rows on a grey section backdrop on purpose (New Message and the category room picker on Android, Read Receipts) are unchanged. On Team Channels, the loading and empty states still draw the
message_empty_*image background, the same as the rooms list's "No rooms found".Summary by CodeRabbit