tailwindcss/tests/plugins/variants
Jordan Pittman fb1743b4b0
Restore old behavior for class dark mode, add new selector and variant options for dark mode (#12717)
* Add dark mode variant option

* Tweak warning messages

* Add legacy dark mode option

* wip

* Use `class` for legacy behavior, `selector` for new behavior

* Add simplified failing apply/where test case

* Switch to `where` list, apply changes to `dir` variants

* Don’t let `:where`, `:is:`, or `:has` be attached to pseudo elements

* Updating tests...

* Finish updating tests

* Remove `variant` dark mode strategy

* Update types

* Update comments

* Update changelog

* Revert "Remove `variant` dark mode strategy"

This reverts commit 185250438c.

* Add variant back to types

* wip

* Update comments

* Update tests

* Rename variable

* Update changelog

* Update changelog

* Update changelog

* Fix CS

---------

Co-authored-by: Adam Wathan <4323180+adamwathan@users.noreply.github.com>
2024-01-05 14:39:34 -05:00
..
__snapshots__ Restore old behavior for class dark mode, add new selector and variant options for dark mode (#12717) 2024-01-05 14:39:34 -05:00
ariaVariants.test.js Reduce quickPluginTest and quickVariantPluginTest snapshot size (#12170) 2023-10-09 16:49:20 +02:00
childVariant.test.js Add * variant for targeting direct children (#12551) 2023-12-09 09:11:00 -05:00
darkVariants.test.js Restore old behavior for class dark mode, add new selector and variant options for dark mode (#12717) 2024-01-05 14:39:34 -05:00
dataVariants.test.js Reduce quickPluginTest and quickVariantPluginTest snapshot size (#12170) 2023-10-09 16:49:20 +02:00
directionVariants.test.js Reduce quickPluginTest and quickVariantPluginTest snapshot size (#12170) 2023-10-09 16:49:20 +02:00
forcedColorsVariants.test.js Add forced-colors variant (#11694) 2023-11-02 20:28:50 +01:00
hasVariants.test.js Reduce quickPluginTest and quickVariantPluginTest snapshot size (#12170) 2023-10-09 16:49:20 +02:00
index.test.js Ensure all built-in plugins have tests (#11618) 2023-07-24 11:41:52 +02:00
orientationVariants.test.js Reduce quickPluginTest and quickVariantPluginTest snapshot size (#12170) 2023-10-09 16:49:20 +02:00
prefersContrastVariants.test.js Reduce quickPluginTest and quickVariantPluginTest snapshot size (#12170) 2023-10-09 16:49:20 +02:00
printVariant.test.js Reduce quickPluginTest and quickVariantPluginTest snapshot size (#12170) 2023-10-09 16:49:20 +02:00
pseudoClassVariants.test.js Reduce quickPluginTest and quickVariantPluginTest snapshot size (#12170) 2023-10-09 16:49:20 +02:00
pseudoElementVariants.test.js Reduce quickPluginTest and quickVariantPluginTest snapshot size (#12170) 2023-10-09 16:49:20 +02:00
reducedMotionVariants.test.js Reduce quickPluginTest and quickVariantPluginTest snapshot size (#12170) 2023-10-09 16:49:20 +02:00
screenVariants.test.js Reduce quickPluginTest and quickVariantPluginTest snapshot size (#12170) 2023-10-09 16:49:20 +02:00
supportsVariants.test.js Reduce quickPluginTest and quickVariantPluginTest snapshot size (#12170) 2023-10-09 16:49:20 +02:00