Skip to content

[bug]: font-size: 62.5% side effects #2005

@bddjong

Description

@bddjong

What version of design-system are you using?

  • Strapi design system: 2.x

What's Wrong?

Strapi Design System 2.x sets font-size: 62.5% globally on the html element. This causes two problems: it silently breaks any third-party components or plugins used in the strapi dashboard with rem font size values, and it creates an implicit contract that every rem value in the entire page assumes 1rem = 10px. This can cause accessibility issues as well with regards to font sizes in design systems or components that would otherwise have legible sizes.

To Reproduce

Use any external component that uses rem font size values / tokens in a strapi plugin

Expected Behaviour

No hidden side effect on the html element.

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue: bugIssue reporting a bugstatus: pending reproductionWaiting for free time to reproduce the issue, or more information

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions