Skip to content

[RNMobile] Improve editor's adaptability to device font size changes #57354

Open

Description

Description

Following support for Dynamic Type on iOS in #57339, there are more opportunities for improving how the editor adapts to font size changes made via a device's accessibility settings.

  • Enforce a maximum and minimum display font size, to account for cases where users may set very small or large custom font sizes.
  • Refactor so that RichText blocks adapt to updates to the Dynamic Type setting without a need to close and re-open the block editor.
  • Review other areas of the editor for improvements.

Relevant notes/issues:

Step-by-step reproduction instructions

  • On iOS, navigate to the Accessibility section in the Settings app.
  • Select Display & Text Size then toggle Larger Accessibility Sizes to on.
  • Select a larger accessibility size.
  • Open the WordPress app and navigate to the post or page editor.
  • Navigate through some everyday writing flows.

Expected behaviour

For text to always be clear and legible, and not to collide or overflow UI.

Actual behaviour

There are some places where text is bigger than its container or where it can even be illegible, such as #37995.

Device information

  • Device: iPhone XR
  • WordPress app version: 23.8.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Mobile App - i.e. Android or iOSNative mobile impl of the block editor. (Note: used in scripts, ping mobile folks to change)[Focus] Accessibility (a11y)Changes that impact accessibility and need corresponding review (e.g. markup changes).[Type] TaskIssues or PRs that have been broken down into an individual action to take

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions