Skip to content

Relative font-size units for resizable text #7548

Closed
@Malvoz

Description

Motivation

Text should be resizable, https://developer.mozilla.org/en-US/docs/Web/CSS/font-size#sect1:

Note: Defining font sizes in px is not accessible, because the user cannot change the font size in some browsers. For example, users with limited vision may wish to set the font size much larger than the size chosen by a web designer. Avoid using them for font sizes if you wish to create an inclusive design.

This would require changing to relative font-size units for text content.

Proposed solution

Change the following to use relative font-size units (e.g. rem, em, %, smaller, larger):

font: 12px/1.5 "Helvetica Neue", Arial, Helvetica, sans-serif;

font-size: 11px;

font-size: 11px;

Additional context

PR: #7571

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    accessibilityAnything related to ensuring no barriers exist that prevent interactions or information access

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions