Skip to content

feat(note): support dynamic type - #27946

Merged
brandyscarney merged 5 commits into
FW-4146from
FW-4437
Aug 9, 2023
Merged

brandyscarney merged 5 commits into
FW-4146from
FW-4437

Conversation

@brandyscarney

@brandyscarney brandyscarney commented Aug 7, 2023 •

Copy link
Copy Markdown
Member

Issue number: N/A


What is the current behavior?

Notes do not support dynamic type.

What is the new behavior?

  • Adds support for dynamic type by converting font-size to use rem units
  • Adds min font size for ios
  • Adds test for scaling the font which checks a note, a note in an item, and a note in an item divider at 310%

Does this introduce a breaking change?

  • Yes
  • No

Other information

Native

I used the Settings app for comparison

80% 100% 135% 310%
IMG_3373 IMG_3372 IMG_3374 IMG_3375

Ionic Framework

80% 100% 135% 310%
ios 80% ios 100% ios 135% ios 310%
md 80% md 100% md 135% md 310%

@bolt-new-by-stackblitz

Copy link
Copy Markdown

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@github-actions github-actions Bot added the package: core @ionic/core package label Aug 7, 2023
@brandyscarney brandyscarney changed the title Fw 4437 feat(note): support dynamic type Aug 7, 2023
@brandyscarney
brandyscarney marked this pull request as ready for review August 7, 2023 17:57
@brandyscarney
brandyscarney requested review from a team and mapsandapps and removed request for a team August 7, 2023 17:57

@mapsandapps mapsandapps left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good 👍🏻

@brandyscarney
brandyscarney merged commit ed54502 into FW-4146 Aug 9, 2023
@brandyscarney
brandyscarney deleted the FW-4437 branch August 9, 2023 13:43
sean-perkins pushed a commit that referenced this pull request Aug 18, 2023
Adds support for dynamic type by converting `font-size` to use `rem` units and setting a min `font-size` which matches native iOS.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

package: core @ionic/core package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants