Skip to content

feat(back-button): support dynamic type - #27750

Merged
liamdebeasi merged 11 commits into
FW-4146from
FW-4419
Jul 12, 2023
Merged

feat(back-button): support dynamic type#27750
liamdebeasi merged 11 commits into
FW-4146from
FW-4419

Conversation

@liamdebeasi

@liamdebeasi liamdebeasi commented Jul 5, 2023

Copy link
Copy Markdown
Contributor

Issue number: N/A


What is the current behavior?

Back button does not support Dynamic Type.

What is the new behavior?

  • Update fonts in iOS to use rem and added max+min fonts.
  • Updated fonts in MD to use rem.
  • Updated the icon-only button to use a min-height and aspect-ratio so that the circular form factor is preserved as text scales up in the button.

Does this introduce a breaking change?

  • Yes
  • No

Other information

Demo Video: https://github.com/ionic-team/ionic-framework/assets/2721089/41f1366f-8467-4c19-be75-3f1581e2ff59
Note: The spacing between rows increases significantly due to that test file's use of <p> elements.

The back button also needed a min font size, so I updated the design doc: https://github.com/ionic-team/ionic-framework-design-documents/pull/116

@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 Jul 5, 2023
@liamdebeasi
liamdebeasi requested review from a team, brandyscarney and thetaPC and removed request for a team July 5, 2023 19:35
@liamdebeasi
liamdebeasi marked this pull request as ready for review July 5, 2023 19:35
Base automatically changed from FW-4513 to FW-4146 July 6, 2023 19:17

@brandyscarney brandyscarney left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This looks good just one question on the weird pixel sizes.

Comment thread core/src/components/back-button/back-button.ios.scss Outdated
@liamdebeasi
liamdebeasi requested a review from brandyscarney July 6, 2023 21:26

@brandyscarney brandyscarney left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Great work! I re-ran the failing screenshot job, seems like a flaky test.

@liamdebeasi
liamdebeasi merged commit fff2114 into FW-4146 Jul 12, 2023
@liamdebeasi
liamdebeasi deleted the FW-4419 branch July 12, 2023 19:35
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.

2 participants