Skip to content

fix: paint list backdrops with the row background color - #7949

Merged
diegolmello merged 1 commit into
developfrom
fix/rooms-list-background-color
Nov 30, 2026
Merged

diegolmello merged 1 commit into
developfrom
fix/rooms-list-background-color

Conversation

@diegolmello

@diegolmello diegolmello commented Nov 26, 2026 •

Copy link
Copy Markdown
Member

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:

  • Rooms list (iOS 26): the list was surfaceNeutral behind a surfaceTint content area. It is now surfaceTint on every theme, the same as Android and older iOS.
  • Team Channels: the list had no background, so the screen's surfaceHover showed below the rows. It now uses the rows' surfaceTint.
  • Select Members, Add Existing Channel, Select List: the background moved from contentContainerStyle to style.

On iOS 26 the rooms list header is transparent, so the area behind the large title and search bar now shows surfaceTint instead of surfaceNeutral. 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

  1. On iOS 26, open the rooms list and scroll to the bottom: there is no grey band above the search toolbar. Check light, dark and black themes.
  2. Open a team you belong to → Room Actions → Channels, with only a few channels: there is no grey below the rows (iOS and Android).
  3. In that team: Add channel to team → Add existing → search to get one result: there is no band below the rows.
  4. In that team: Add channel to team → Create new (Select Members) → search: there is no band below the rows.
  5. On Android, as a team owner: Room Actions → Convert to channel (Select List): there is no band below the rows. Back out without pressing Next.

Screenshots

iOS 26

Screen Before After
Rooms list, light rooms list light before rooms list light after
Rooms list, dark rooms list dark before rooms list dark after
Rooms list, black rooms list black before rooms list black after
Team Channels team channels before team channels after
Add Existing Channel add existing before add existing after
Select Members select members before select members after

Android

Screen Before After
Team Channels android team channels before android team channels after
Add Existing Channel android add existing before android add existing after
Select Members android select members before android select members after
Select List android select list before android select list after

Types of changes

  • Bugfix (non-breaking change which fixes an issue)
  • Improvement (non-breaking change which improves a current function)
  • New feature (non-breaking change which adds functionality)
  • Documentation update (if none of the other choices apply)

Checklist

  • I have read the CONTRIBUTING doc
  • I have signed the CLA
  • Lint and unit tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works (if applicable)
  • I have added necessary documentation (if applicable)
  • Any dependent changes have been merged and published in downstream modules

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

  • Style
    • List backgrounds are now applied consistently across channel, room, and user-selection screens, including themed surfaces where applicable.
    • The updated backgrounds cover the full list area, while existing spacing around list content remains unchanged.

@coderabbitai

coderabbitai Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

Five list views now apply background colors through FlatList styles. Content-container padding remains where specified. RoomsListView uses surfaceTint and removes its listContent style.

Changes

List background styling

Layer / File(s) Summary
Apply backgrounds to FlatList
app/views/AddExistingChannelView/index.tsx, app/views/SelectListView/index.tsx, app/views/SelectedUsersView/index.tsx, app/views/RoomsListView/index.tsx, app/views/RoomsListView/styles.ts, app/views/TeamChannelsView.tsx
The views apply background colors through FlatList styles. Content-container padding remains where specified. RoomsListView uses surfaceTint and removes its listContent style. TeamChannelsView uses the current theme’s surfaceTint.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Suggested labels: type: bug

Suggested reviewers: rohit3523, otaviostasiak

Merge Risk: Minimal · up to c9e90

This change paints list backdrops with the row background color, which removes mismatched bands below short lists and under the iOS 26 toolbar. The edits are small and easy to revert, with no data or logic impact. No merge-blocking risk is evident; a quick visual check of the affected lists is the only remaining step.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title "fix: paint list backdrops with the row background color" matches the main change. The PR moves list background colors from content containers to the lists themselves, using the row surfaceT…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Full details: Title check

Explanation

The title "fix: paint list backdrops with the row background color" matches the main change. The PR moves list background colors from content containers to the lists themselves, using the row surfaceTint color across the Rooms, Team Channels, Select Members, Add Existing Channel, and Select List views. The title is concise, specific, and follows a conventional commit prefix. It does not cover every file, which is acceptable.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Warning

Errors were encountered while retrieving linked issues.

Errors: 1

  • JIRA integration encountered authorization issues. Please disconnect and reconnect the integration in the CodeRabbit UI.

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.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: e52ad62b-c449-4634-96e3-b3c7e7739870
Commits

Reviewing files that changed from the base of the PR and between 3db8f30 and c9e90be.

Files selected for processing: 6

  • app/views/AddExistingChannelView/index.tsx
  • app/views/RoomsListView/index.tsx
  • app/views/RoomsListView/styles.ts
  • app/views/SelectListView/index.tsx
  • app/views/SelectedUsersView/index.tsx
  • app/views/TeamChannelsView.tsx
Files with no reviewable changes: 1

  • app/views/RoomsListView/styles.ts

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 5 remain after this review.

Recent review details

Context from checks skipped due to timeout: 3

  • GitHub Check: CodeRabbit
  • GitHub Check: ESLint and Test / run-eslint-and-test
  • GitHub Check: E2E Shard Preflight

@diegolmello

Copy link
Copy Markdown
Member Author

Why a grey band showed under the rows

A FlatList has two surfaces: the scroll view itself (style) and the content inside it (contentContainerStyle). The content area is only as tall as its rows. Whatever is left of the screen, plus any automatic content inset (the iOS 26 bottom toolbar), shows the scroll view, or whatever is behind it when the list has no background.

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
Loading

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 }}
Screen Rows Below rows, before Below rows, after
RoomsListView (iOS 26) surfaceTint surfaceNeutral surfaceTint
TeamChannelsView surfaceTint surfaceHover (SafeAreaView) surfaceTint
SelectedUsersView / AddExistingChannelView backdrop listBackgroundColor surfaceHover listBackgroundColor
SelectListView (Android) surfaceRoom surfaceHover surfaceRoom

RoomsListView also drops the flexGrow: 1 content container. It only existed to stretch the surfaceTint area over the grey list.

@OtavioStasiak OtavioStasiak left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@diegolmello
diegolmello force-pushed the fix/rooms-list-background-color branch from c9e90be to d7d0359 Compare November 30, 2026 14:40
@diegolmello
diegolmello merged commit 0ccf845 into develop Nov 30, 2026
8 of 11 checks passed
@diegolmello
diegolmello deleted the fix/rooms-list-background-color branch November 30, 2026 14:47

This branch is waiting to be deployed

3 waiting deployments
android_build — d7d03591 Waiting Nov 30, 2026 by diegolmello via Build Android / Hold #8093
ios_build — d7d03591 Waiting Nov 30, 2026 by diegolmello via Build iOS / Hold #8093
approve_e2e_testing — d7d03591 Waiting Nov 30, 2026 by diegolmello via E2E Hold #8093
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants