Comments (6)
Hi,
What versions of tailwindcss and tailwindcss-rtl are you using?
from tailwindcss-rtl.
Hi,
I'm using Tailwindcss version 1.9.6 and tailwindcss-rtl version 0.7.3.
All other utility classes are working, only the inset utilities aren't working when @Applying them in the styling.
from tailwindcss-rtl.
There are two types of utility implementations in this plugin, the first is with bidirectional properties and the other with attribute selectors.
personally, I have never tried using the @apply, but I know there were issues with complex selectors (the attribute selectors).
tailwindcss 2.0 has improved support for @apply so I would start with that. otherwise, you will probably have to use the inline structure.
from tailwindcss-rtl.
But how is it possible that ps-4 works, but start-4 doesn't. They shouldn't differ that much, right ?
edit: looking at the utility methods, they differ in such a way that they use defined css instead of paddingInlineStart/End...
I'll try to find a workaround then...
edit2: I was able to solve it in a different way :-) issue can be closed as this is more related to tailwindcss than to tailwindcss-rtl.
from tailwindcss-rtl.
As I mentioned before the utilities below are supported without any issues, all others not:
- borderRadiusUtilities
- borderWidthUtilities
- divideUtilities
- floatUtilities
- marginUtilities
- paddingUtilities
- spaceUtilities
And please share your solution as this problem rise here once in a while..
from tailwindcss-rtl.
My solution for now was to simply make the direction distinction in the scoped styling.
So instead of doing this:
.someclass::before {
@apply start-0;
}
I'm doing this:
[dir='ltr'] .someclass::before {
@apply left-0;
}
[dir='rtl'] .someclass::before {
@apply right-0;
}
from tailwindcss-rtl.
Related Issues (20)
- Support for ESM HOT 1
- why aren't the native css "text-align: start" and end used? HOT 3
- tailwind-rtl not working when the parent dir="rtl" in version 0.8.0 HOT 5
- Plugin doesn't work with Tailwind v3 HOT 5
- Tailwind 3.0 RTL Search Patterns HOT 2
- :not([dir="rtl"]) is breaking everything HOT 6
- Question: Why does this not use `border-(start|end)-(start|end)-radius`? HOT 1
- Negative inset classes not working.
- Vite support? HOT 10
- Support for arbitrary values? HOT 5
- Negative values not being generated HOT 7
- inset
- right-* left-* classes to be start-* and end-* HOT 1
- [Question] Anyone tried using `tailwindcss-rtl` along with `twin.macro`? HOT 1
- Add support for `before`, `after` and right or left values
- Add support to space-x-() HOT 1
- dependency conflict when install tailwindcss-rtl package
- does not support negative margins i.e. -ms-x
- add support for bg-end bg-start
- How to ignore the change to rtl for certain elements?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tailwindcss-rtl.