Commit 5ce7dc1
Remove 'Dynamic styles inside pseudo elements' warning
StyleX now supports dynamic styles inside ::before/::after pseudo
elements (facebook/stylex#1396 is closed). Remove the bail/error
warning that fired when tryHandleDynamicPseudoElementViaCustomProperty
could not handle a case — instead, fall through to the remaining
interpolation handlers.
The custom property workaround itself is preserved as one valid
strategy; cases it cannot handle now proceed to other handlers
instead of bailing the entire declaration.
Co-authored-by: Kenneth Skovhus <skovhus@users.noreply.github.com>1 parent 84c0da8 commit 5ce7dc1
File tree
4 files changed
+6
-20
lines changed- src/internal
- lower-rules
- test-cases
4 files changed
+6
-20
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
51 | 50 | | |
52 | 51 | | |
53 | 52 | | |
| |||
Lines changed: 2 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
319 | 319 | | |
320 | 320 | | |
321 | 321 | | |
322 | | - | |
323 | | - | |
324 | | - | |
325 | | - | |
326 | 322 | | |
327 | 323 | | |
328 | 324 | | |
329 | 325 | | |
330 | | - | |
331 | | - | |
332 | | - | |
333 | | - | |
334 | | - | |
335 | | - | |
336 | | - | |
337 | | - | |
338 | 326 | | |
339 | 327 | | |
340 | 328 | | |
| |||
2326 | 2314 | | |
2327 | 2315 | | |
2328 | 2316 | | |
2329 | | - | |
| 2317 | + | |
| 2318 | + | |
2330 | 2319 | | |
2331 | 2320 | | |
2332 | 2321 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
7 | | - | |
| 5 | + | |
| 6 | + | |
8 | 7 | | |
9 | 8 | | |
10 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
12 | | - | |
| 10 | + | |
| 11 | + | |
13 | 12 | | |
14 | 13 | | |
15 | 14 | | |
| |||
0 commit comments