An opinionated Tailwind CSS class sorter built for Visual Studio Code
1.38k
stars
46
forks
source link
Sort doesn't work for non-prefixed class `text-blue-gray-500` if added after prefixed class `sm:text-sm` #104
Open
deadcoder0904 opened 3 years ago
Describe the bug Doesn't sort if I put regular
className
liketext-blue-gray-500
in the end after the prefixed onesm:text-sm
.To Reproduce I have the following
className
in React:If I put it
text-blue-gray-500
in the end like:Then it doesn't sort it. But if I put it before the last prefixed one, which in this case is
focus:outline-none
, then it sorts perfectly.Expected behavior It should sort even if I put the non-prefixed
className
in the end.Additional context
tailwind.config.js