tailwindcss/packages
Philipp Spiess f3157cd9a6
Ignore custom variants with :merge(…) selectors (#18020)
Closes #15617

## Summary

This PR ignores `addVariant(…)` legacy JS plugin calls for variants that
are using the [`:merge(…)`
selector](https://v3.tailwindcss.com/docs/plugins#parent-and-sibling-states)
for parent and sibling states. We can ignore these now because in v4,
`group-*` and `peer-*` variants _compound automatically_ and you don't
have to define them anymore.

## Test plan

Added a unit test to ensure that the `optional` variant example from the
v3 docs work as expected.
2025-05-15 13:00:00 +02:00
..
@tailwindcss-browser Prepare v4.1.6 release (#17951) 2025-05-09 13:39:18 +00:00
@tailwindcss-cli Prepare v4.1.6 release (#17951) 2025-05-09 13:39:18 +00:00
@tailwindcss-node Prepare v4.1.6 release (#17951) 2025-05-09 13:39:18 +00:00
@tailwindcss-postcss Update dedent 1.5.3 → 1.6.0 (minor) (#17965) 2025-05-10 13:21:48 +02:00
@tailwindcss-standalone Upgrade bun to 1.2.13 (#17981) 2025-05-12 15:17:19 +02:00
@tailwindcss-upgrade Change casing of utilities with named values to kebab-case to match u… (#18017) 2025-05-14 14:51:51 +02:00
@tailwindcss-vite Prepare v4.1.6 release (#17951) 2025-05-09 13:39:18 +00:00
internal-example-plugin Prefix internal modules with internal-* (#14074) 2024-07-29 10:58:07 -04:00
tailwindcss Ignore custom variants with :merge(…) selectors (#18020) 2025-05-15 13:00:00 +02:00
tsconfig.base.json Improve debug logs (#15303) 2024-12-11 15:27:20 +01:00