-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Description
Solidus Version:
4.6.2
To Reproduce
Use a Tailwind text-size class such as text-sm
Current behavior
The class is not recognized by Tailwind, however the text size classes exist as text-body-, for example, text-body-sm
Expected behavior
text-body is a non-standard Tailwind class. The fact that the normal text-size classes don't work caused a huge time sync for me.
Desktop (please complete the following information):
- OS: macOS 15.6.1
- Browser: Brave 1.85.116 (Official Build) (arm64)
Additional context
I created a basic rails (8.0.4) app and added the tailwindcss-rails gem (latest 3.x). I added a text-sm class to an HTML element and the class was generated correctly.
I still don't understand how this class name change happens in Solidus. In any case it seems to be intentional and it changes the Tailwind API so there should be a good reason and it should be documented.