Page MenuHomePhabricator

[native] change outerRingSelectedColor prop type from string to ViewStyle
ClosedPublic

Authored by ginsu on Apr 10 2023, 11:45 AM.
Tags
None
Referenced Files
F3400213: D7373.id24930.diff
Mon, Dec 2, 6:38 AM
F3400188: D7373.id24913.diff
Mon, Dec 2, 6:33 AM
F3400027: D7373.id24933.diff
Mon, Dec 2, 5:54 AM
F3399562: D7373.diff
Mon, Dec 2, 3:47 AM
Unknown Object (File)
Tue, Nov 5, 4:49 AM
Unknown Object (File)
Tue, Nov 5, 4:49 AM
Unknown Object (File)
Tue, Nov 5, 4:49 AM
Unknown Object (File)
Tue, Nov 5, 4:49 AM
Subscribers

Details

Summary

Based on a comment I got on D7323 it would be better to have the outerRingSelectedColor prop type be a ViewStyle so that we can use a color entry from color.js instead of picking a color in the EmojiAvatarCreation component, which will help maintain a consistent design system

Depends on D7353

Test Plan

Tested the selected color outer ring in ColorSelectors and EmojiAvatarCreation and got the following in light and dark mode:

ColorSelectors (does not use the outerRingSelectedColor prop):

Dark:

Screenshot 2023-04-10 at 2.37.54 PM.png (1×1 px, 808 KB)

Light:

Screenshot 2023-04-10 at 2.37.39 PM.png (1×1 px, 814 KB)

EmojiAvatarCreation: (used modalSubtext entry from colors.js as the outerRingSelectedColor prop)

Dark:

Screenshot 2023-04-10 at 2.37.11 PM.png (1×1 px, 787 KB)

Light:

Screenshot 2023-04-10 at 2.37.24 PM.png (1×1 px, 796 KB)

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

This revision is now accepted and ready to land.Apr 10 2023, 12:04 PM