Commit c817453
Resolves #14440.
This PR fixes an issue where registering a custom `inset-shadow-*`
utility value in your theme like this:
```css
@theme {
--inset-shadow-potato: inset 0px 2px 6px #7a4724;
}
```
…mistakenly generates both an `inset-shadow-*` and `inset-*` utility
with that value:
```css
.inset-shadow-potato {
inset: inset 0px 2px 6px #7a4724;
}
.inset-shadow-potato {
box-shadow: inset 0px 2px 6px #7a4724;
}
```
This replaces #14445 which turns out to not be the ideal solution.
Now we just explicitly ignore variables like `--inset-shadow-*` and
`--inset-ring-*` in the `inset` handler. Kind of a gross patch but I can
live with it because the whole existence of the `--inset-*` key is kind
of a backwards compatibility thing anyways.
---------
Co-authored-by: Adam Wathan <[email protected]>
Co-authored-by: Philipp Spiess <[email protected]>
1 parent cb5b7b4 commit c817453
File tree
3 files changed
+46
-13
lines changed- packages/tailwindcss/src
3 files changed
+46
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14143 | 14143 | | |
14144 | 14144 | | |
14145 | 14145 | | |
14146 | | - | |
14147 | | - | |
14148 | | - | |
14149 | | - | |
14150 | | - | |
14151 | | - | |
14152 | | - | |
14153 | | - | |
14154 | 14146 | | |
14155 | 14147 | | |
14156 | 14148 | | |
| |||
14622 | 14614 | | |
14623 | 14615 | | |
14624 | 14616 | | |
| 14617 | + | |
14625 | 14618 | | |
14626 | 14619 | | |
14627 | 14620 | | |
| |||
14656 | 14649 | | |
14657 | 14650 | | |
14658 | 14651 | | |
| 14652 | + | |
14659 | 14653 | | |
14660 | 14654 | | |
14661 | 14655 | | |
14662 | 14656 | | |
14663 | 14657 | | |
14664 | 14658 | | |
14665 | 14659 | | |
| 14660 | + | |
14666 | 14661 | | |
14667 | 14662 | | |
14668 | 14663 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
428 | 428 | | |
429 | 429 | | |
430 | 430 | | |
431 | | - | |
432 | | - | |
433 | | - | |
434 | | - | |
435 | | - | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
436 | 466 | | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
437 | 474 | | |
438 | 475 | | |
439 | 476 | | |
| |||
0 commit comments