Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[IOAPPX-330] Allow font scaling to all the typographic styles when experimental DS is on #296

Merged
merged 11 commits into from
Jul 5, 2024

Conversation

dmnplb
Copy link
Collaborator

@dmnplb dmnplb commented Jun 24, 2024

Short description

This PR allows font scaling to all typographic styles. This change allows virtually all dynamic sizing on (almost) every DS component.

Important

For testing purposes, font scaling currently only works when experimental DS is enabled.

List of changes proposed in this pull request

  • Add allowFontScaling to all the typographic styles
  • Add the new maxFontSizeMultiplier constant to IOVisualConstants
  • Dynamically trim text box in the Alert component, based on dynamic font scale. Manual fixing has been introduced by this PR:
  • [extra] Fix some visual issues of the Module… and ListItem… components

Preview

accessible-components-bigger-font-size.mov

How to test

  1. Launch the example app
  2. Change font zoom from the OS
  3. Check all the changes applied to the components

@dmnplb dmnplb requested review from a team as code owners June 24, 2024 15:35
@dmnplb dmnplb merged commit 409cccf into main Jul 5, 2024
6 checks passed
@dmnplb dmnplb deleted the IOAPPX-330-enable-dynamic-type-typography branch July 5, 2024 06:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants