Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve relative precedence of rtl, ltr, forced-colors and dark variants #12584

Merged
merged 2 commits into from
Dec 16, 2023

Commits on Dec 13, 2023

  1. 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.
    adamwathan committed Dec 13, 2023
    Configuration menu
    Copy the full SHA
    b68e7cf View commit details
    Browse the repository at this point in the history

Commits on Dec 16, 2023

  1. Update changelog

    adamwathan committed Dec 16, 2023
    Configuration menu
    Copy the full SHA
    ee3cdf2 View commit details
    Browse the repository at this point in the history