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)
Tue, Oct 1, 7:56 AM
Unknown Object (File)
Fri, Sep 27, 11:27 AM
Unknown Object (File)
Wed, Sep 25, 11:35 AM
Unknown Object (File)
Mon, Sep 23, 9:28 AM
Unknown Object (File)
Wed, Sep 18, 4:47 AM
Unknown Object (File)
Aug 24 2024, 9:49 PM
Unknown Object (File)
Aug 24 2024, 9:49 PM
Unknown Object (File)
Aug 24 2024, 9:49 PM
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