Closed vsg24 closed 2 years ago
Just checked it again, I don't find any issue. what tailwindcss and tailwindcss-rtl versions are you using? and can you give me additional info about your work setup?
My locale is English and every other class RTL class works fine including ps-*
and pe-*
classes however replacing rounded-l-md
with rounded-s-md
should logically give the same result but it doesn't generate anything.
this was taken from the generated file on 0.7.3.
My bad, I wasn't setting the right direction attribute in the main html tag. Setting dir="ltr"
to fixed the problems.
@20lives sorry for bringing this up on a closed issue. But considering how the majority of languages are LTR, shouldn't that be the default for these classes? Unless dir
is set to rtl
, I would expect start to correspond to left and end to right.
@dhruvkb How is this not the case?
The default dir of all elements are LTR which means that start and end are left and right respectively (unless you state otherwise dir=rtl
)
Or I am not understanding your question?
If the dir
attribute is not set at all, the rounded-*
classes don't apply, since all their selectors are [dir="ltr"] ...
or [dir="rtl"] ...
.
My understanding was similar to how @VSG24 had to explicitly set dir="ltr"
on the HTML to fix the issue, whereas that should've been the default.
you are correct.
None of them really work. They don't generate the appropriate classes.