Skip to content

Commit

Permalink
Remove warnings when using RTL/LTR variants (#10764)
Browse files Browse the repository at this point in the history
* Remove warnings when using RTL/LTR variants

* Update changelog

---------

Co-authored-by: Adam Wathan <[email protected]>
  • Loading branch information
adamwathan and adamwathan authored Mar 10, 2023
1 parent 5e9470c commit c7d605f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 17 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
19 changes: 2 additions & 17 deletions src/corePlugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 }) => {
Expand Down

0 comments on commit c7d605f

Please sign in to comment.