Skip to content

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

@remy727

Description

@remy727

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?

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