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
F1773071: D7321.diff
Wed, May 15, 9:26 PM
Unknown Object (File)
Sun, May 12, 12:38 AM
Unknown Object (File)
Wed, May 8, 11:00 PM
Unknown Object (File)
Sat, Apr 27, 3:27 PM
Unknown Object (File)
Tue, Apr 16, 8:28 PM
Unknown Object (File)
Mar 28 2024, 5:41 AM
Unknown Object (File)
Mar 28 2024, 5:41 AM
Unknown Object (File)
Mar 28 2024, 5:41 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