tailwindcss/tests/util
Adam Wathan fbdb858e97 Improve relative precedence of rtl, ltr, forced-colors and dark variants (#12584)
* Reduce specificity of `rtl`, `ltr`, and `dark` variants

Reduce specificity of `rtl`, `ltr`, and `dark` variants (when using `darkMode: 'class'`) to make them the same as other variants. This also sorts the LTR/RTL and dark variants later in the variant plugin list to ensure that the reduced specificity doesn't cause them to start "losing" to other variants to keep things as backwards compatible as possible.

Resolves a long-standing issue where `darkMode: 'media'` and `darkMode: 'class'` had different specificity, which meant switching your dark mode strategy could break your site.

* Update changelog

---------

Co-authored-by: Adam Wathan <4323180+adamwathan@users.noreply.github.com>
2023-12-18 13:58:22 -05:00
..
apply-important-selector.test.js Improve relative precedence of rtl, ltr, forced-colors and dark variants (#12584) 2023-12-18 13:58:22 -05:00
crosscheck.test.js Run test suite against both engines (#10373) 2023-01-20 18:45:04 +01:00
defaults.js Fix gradient stop positions with transparent colors and/or variants (#11002) 2023-04-13 16:12:12 -04:00
run.js Replace __OXIDE__ at build time to prevent @tailwindcss/oxide leaks in the stable engine (#10988) 2023-04-18 12:19:20 +02:00
source-maps.js Use Lightning CSS in the PostCSS Plugin (#10399) 2023-01-23 20:44:31 +01:00
strings.js Change how we handle defaults (optimized or not) (#6926) 2022-01-07 11:39:45 -05:00