Page MenuHomePhabricator

[native] introduce outerRingSelectedColor prop to ColorSelectorButton and ColorRows
ClosedPublic

Authored by ginsu on Apr 5 2023, 11:55 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Nov 28, 6:56 PM
Unknown Object (File)
Thu, Nov 28, 4:53 PM
Unknown Object (File)
Thu, Nov 28, 4:34 PM
Unknown Object (File)
Thu, Nov 28, 2:34 PM
Unknown Object (File)
Wed, Nov 6, 11:42 AM
Unknown Object (File)
Wed, Nov 6, 3:28 AM
Unknown Object (File)
Wed, Nov 6, 3:28 AM
Unknown Object (File)
Mon, Nov 4, 5:09 AM
Subscribers

Details

Summary

While working on the emoji avatar creation, I noticed a situation where the outer ring of the selected color was not visible. This was because the outer ring color matched the background color of the screen area. To fix this, I created an optional prop called outerRingSelectedColor that devs can use to override the outer ring color for situations like this

Test Plan

Please watch the demo videos to see the before and after

Before:

After (set the value of outerRingSelectedColor to #404040) :

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

ginsu edited the test plan for this revision. (Show Details)
ginsu added reviewers: ashoat, atul.
ginsu edited the test plan for this revision. (Show Details)
ginsu requested review of this revision.Apr 5 2023, 12:12 PM

I can't tell what the issue is in the before video

I can't tell what the issue is in the before video

There is no outer ring for the selected emoji background color in the before video. The original ColorSelectorButton was being rendered on a black background so we could visually see the outer ring of the selected color:

The ColorSelectorButton in the emoji avatar creation was being rendered on a lighter background so the outer ring of the selected color is not visible:

This revision is now accepted and ready to land.Apr 5 2023, 1:13 PM