Page MenuHomePhabricator

[native] Fix appearance of `TabNavigator` in light mode
ClosedPublic

Authored by atul on Nov 10 2022, 5:21 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Dec 9, 3:37 PM
Unknown Object (File)
Mon, Dec 9, 1:36 PM
Unknown Object (File)
Nov 2 2024, 11:10 PM
Unknown Object (File)
Oct 15 2024, 8:34 AM
Unknown Object (File)
Oct 12 2024, 4:07 AM
Unknown Object (File)
Oct 12 2024, 3:54 AM
Unknown Object (File)
Oct 12 2024, 3:51 AM
Unknown Object (File)
Oct 12 2024, 3:31 AM
Subscribers

Details

Reviewers
tomek
marcin
ginsu
rohan
abosh
varun
ashoat
Group Reviewers
Restricted Owners Package(Owns No Changed Paths)
Commits
rCOMM078cd822453e: [native] Fix appearance of `TabNavigator` in light mode
Summary

Context: https://linear.app/comm/issue/ENG-2052/re-introduce-light-mode-in-native

The backgroundColor of TabNavigator was previously hardcoded to a dark value that looked fine in dark mode but looked broken in light mode.

This diff sets the backgroundColor to tabBarBackground which will adapt based on the theme.

Test Plan

Before:

214ce5.png (1×710 px, 303 KB)

After:

85d343.png (1×706 px, 305 KB)

Things look as expected.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

atul requested review of this revision.Nov 10 2022, 5:34 PM
native/navigation/tab-navigator.react.js
94 ↗(On Diff #18361)

Think this should be changed in light mode, it's kinda hard to tell which tab is open. Not sure if that's meant for a separate diff tho

native/navigation/tab-navigator.react.js
94 ↗(On Diff #18361)

Yeah agree that change is in: https://phab.comm.dev/D5615

This revision is now accepted and ready to land.Nov 11 2022, 8:52 AM
atul added a reviewer: Restricted Owners Package.Nov 11 2022, 8:53 AM
This revision now requires review to proceed.Nov 11 2022, 8:53 AM
This revision is now accepted and ready to land.Nov 11 2022, 1:02 PM