Commit c2dadb0
committed
ThemeProvider: keep data-wpds-root-provider marker for CSS forwarding
Restores `data-wpds-root-provider="true"` on the wrapper when `isRoot`,
so prebuilt CSS can forward preset-based settings (e.g. `cornerRadius`
in #79153) to `:root` via `:root:has([data-wpds-root-provider="true"]…)`.
Dynamic color/cursor values keep using the JS sync in `useLayoutEffect`
(they can't be expressed in a static stylesheet). Comment updated to
explain the deliberate split.1 parent 2c668ee commit c2dadb0
1 file changed
Lines changed: 11 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
34 | 39 | | |
35 | 40 | | |
36 | 41 | | |
| |||
68 | 73 | | |
69 | 74 | | |
70 | 75 | | |
| 76 | + | |
71 | 77 | | |
72 | 78 | | |
73 | 79 | | |
| |||
0 commit comments