Skip to content

text-body instead of just text- for Tailwind text size classes #6402

@cdavaz

Description

@cdavaz

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):

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions