baoagency / polaris_view_components

ViewComponents for Polaris Design System
https://polarisviewcomponents.org
MIT License
380 stars 53 forks source link

Font sizes doesn't match with Polaris Text component #425

Open remy727 opened 4 months ago

remy727 commented 4 months ago

Font sizes of Text component doesn't match with Polaris Text component.

Example:

Polaris ViewComponents

<%= polaris_text(as: :h4, variant: :headingXl) { "Hello" } %> <!-- 16px -->

Polaris components

<Text variant="headingXl" as="h4">Hello</Text> // 24px;

I was looking for the font variant with 24px but no variant existed. Is this because Polaris ViewComponent is using Polaris 12.0?