diff --git a/CHANGELOG.md b/CHANGELOG.md index cf070956b..51150e083 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -30,6 +30,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - [Oxide] Disable color opacity plugins by default in the `oxide` engine ([#10618](https://github.com/tailwindlabs/tailwindcss/pull/10618)) - [Oxide] Enable relative content paths for the `oxide` engine ([#10621](https://github.com/tailwindlabs/tailwindcss/pull/10621)) +- Mark `rtl` and `ltr` variants as stable and remove warnings ([#10764](https://github.com/tailwindlabs/tailwindcss/pull/10764)) ## [3.2.7] - 2023-02-16 diff --git a/src/corePlugins.js b/src/corePlugins.js index 3e63c12a3..dc7300293 100644 --- a/src/corePlugins.js +++ b/src/corePlugins.js @@ -199,23 +199,8 @@ export let variantPlugins = { }, directionVariants: ({ addVariant }) => { - addVariant('ltr', () => { - log.warn('rtl-experimental', [ - 'The RTL features in Tailwind CSS are currently in preview.', - 'Preview features are not covered by semver, and may be improved in breaking ways at any time.', - ]) - - return '[dir="ltr"] &' - }) - - addVariant('rtl', () => { - log.warn('rtl-experimental', [ - 'The RTL features in Tailwind CSS are currently in preview.', - 'Preview features are not covered by semver, and may be improved in breaking ways at any time.', - ]) - - return '[dir="rtl"] &' - }) + addVariant('ltr', '[dir="ltr"] &') + addVariant('rtl', '[dir="rtl"] &') }, reducedMotionVariants: ({ addVariant }) => {