Skip to content

Font size and accessibility #6830

@srambach

Description

@srambach

A user has reported that the font size in v6 is too small.

WCAG2 does not define a minimum font size. The base size was decreased from 16px to 14px after an analysis of other data heavy, complex product UI design systems such as IBM Carbon, Material, Atlassian Design, Microsoft Fluent, and Github Primer.

A new body font size token for body-lg (16px), was added to be used for larger, long form blocks of text. The smallest text size remains at 12px.

The design team is actively working with the design language DPO group to align on typography standards.

However, tokens are currently set as px units rather than rem units, meaning that fonts do not resize properly with user preferences.
We should either consume tokens as REM units patternfly/design-tokens#47 or convert the px to rems in core.

V5 on the left; V6 alpha on the right
image

@garrett

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions