Open AmirHosseinKarimi opened 3 years ago
Nice catch. I Will try to think of a solution
Adding the following to textAlignUtilities.js solves this specifically, but this could be pretty expensive when adding to all utilities without directions.
'[dir] .text-center': { 'text-align': 'center' },
@20lives Thanks for quick fix solution, I just handled it by is_rtl()
condition for temporary hot fix in this specific scenario.
I just think about it, what about disable Tailwind core text align plugin and extend it via direction prefix to fix rules priority in variations?
I don't think it's possible to remove existing utilities with plugins
But can mention it on documentation which need manually do it to fix the issue?
I am not planning on leaving it that way :)
Hi, I have a scenario which I need set text align to start by default and set it to center on SM break-point. So set these class:![Screenshot from 2021-03-12 15-23-50](https://user-images.githubusercontent.com/17345129/110937175-3e88c700-8347-11eb-96cf-0c18ea823735.png)
text-start sm:text-center
The result is not correct:The
text-start
will overridesm:text-center