Skip to content

test(rn-tester): playground repro for normalize-color partial match (#58495) - #58497

Closed
scs0209 wants to merge 1 commit into
react:mainfrom
scs0209:repro/58495-normalize-color-playground
Closed

test(rn-tester): playground repro for normalize-color partial match (#58495)#58497
scs0209 wants to merge 1 commit into
react:mainfrom
scs0209:repro/58495-normalize-color-playground

Conversation

@scs0209

@scs0209 scs0209 commented Sep 12, 2026

Copy link
Copy Markdown

Summary

RNTester Playground reproducer for #58495.

On main, processColor('xxrgb(1, 2, 3)yy') (and similar junk around rgb/rgba) returns a non-null processed color and paints a swatch, while hex with spaces correctly stays null.

Fix PR (separate): #58496

Changelog

[INTERNAL] [CHANGED] - Add RNTester Playground repro for normalize-color partial matching

Test Plan

  1. Build and run RNTester.
  2. Open the Playground example.
  3. Confirm junk functional color rows show non-null processColor values and filled swatches (bug on main).

Made with Cursor

Demonstrates issue react#58495: processColor accepts functional color strings
with surrounding junk on main.
@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Sep 12, 2026
@github-actions

Copy link
Copy Markdown

Caution

Missing Changelog

Please add a Changelog to your PR description. See Changelog format

@scs0209

scs0209 commented Sep 12, 2026

Copy link
Copy Markdown
Author

Closing this in favor of a single fix PR. Reproducer details are on the issue and in the unit tests on #58496.

@scs0209 scs0209 closed this Sep 12, 2026
@scs0209
scs0209 deleted the repro/58495-normalize-color-playground branch September 12, 2026 02:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant