Giter Site home page Giter Site logo

Comments (6)

20lives avatar 20lives commented on May 27, 2024

Hi,
What versions of tailwindcss and tailwindcss-rtl are you using?

from tailwindcss-rtl.

randriese avatar randriese commented on May 27, 2024

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.

20lives avatar 20lives commented on May 27, 2024

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.

randriese avatar randriese commented on May 27, 2024

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.

20lives avatar 20lives commented on May 27, 2024

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.

randriese avatar randriese commented on May 27, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.