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

Remove warnings when using RTL/LTR variants #10764

Merged
merged 2 commits into from
Mar 10, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Remove warnings when using RTL/LTR variants
  • Loading branch information
adamwathan committed Mar 10, 2023
commit 39e8a1f92339400619b5a78d581dea2ef3fee41c
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