Adding a small text/paragraph variant

Hello,

For my rich text field component, I want to replicate the size used for standard Polaris label and details, where the text is smaller. However, due to the fact that and do not have “size” variant, I can’t replicate this layout easily:

Of course I could add inline styles and re-use the same size, but if Shopify changes the small size in the future this won’t adapt automatically.

Thanks.

This is intentional. We want to system to control the size of the text. We might change this in the future but as of now that is our stance.

What is the difference in size you are seeing?

Hello @alex-page,

Please refer to my screenshot on the previous message. I’m creating a rich text field component, so I need to replicate the label, details and errors, which all use a “small” text variation. For now I’ve been able to workaround it by wrapping the text inside a span with a font size set to 0.75rem, but obviously we loose the ability to have the component to automatically adjust when you update Polaris.

1 Like

We have ongoing discussions around supporting different sizes. No promises but I know it’s being actively discussed.