Repository navigation
Commit 3730f8a
committed
stop the variant guard reaching into a neighbouring attribute
review caught an over match i introduced. vue writes attributes without braces
so the gap happily crossed variant="ghost" and carried on into :class, which
suppressed a class that should have migrated
quotes may now only be crossed inside a brace, where a quoted ternary branch is
ordinary. outside one a quote closes the attribute value so the match stops
there. nested parens in a condition are handled while i was in here1 parent 893ab46 commit 3730f8a
2 files changed
Lines changed: 18 additions & 4 deletions
File tree
- packages/@tailwindcss-upgrade/src/codemods/template
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
| 127 | + | |
127 | 128 | | |
128 | 129 | | |
129 | 130 | | |
| |||
158 | 159 | | |
159 | 160 | | |
160 | 161 | | |
| 162 | + | |
161 | 163 | | |
162 | 164 | | |
163 | 165 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
7 | 21 | | |
8 | 22 | | |
9 | 23 | | |
| |||
18 | 32 | | |
19 | 33 | | |
20 | 34 | | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
| 35 | + | |
| 36 | + | |
25 | 37 | | |
26 | 38 | | |
27 | 39 | | |
| |||
0 commit comments