Remove warnings when using RTL/LTR variants (#10764)
* Remove warnings when using RTL/LTR variants * Update changelog --------- Co-authored-by: Adam Wathan <4323180+adamwathan@users.noreply.github.com>
This commit is contained in:
parent
5e9470c5cb
commit
c7d605f8c5
2 changed files with 3 additions and 17 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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 }) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue