Skip to content

feat(button): support dynamic type - #27887

Merged
brandyscarney merged 7 commits into
FW-4146from
FW-4422
Aug 4, 2023
Merged

feat(button): support dynamic type#27887
brandyscarney merged 7 commits into
FW-4146from
FW-4422

Conversation

@brandyscarney

Copy link
Copy Markdown
Member

Issue number: N/A


What is the current behavior?

The button does not support dynamic type.

What is the new behavior?

Adds support for dynamic type by converting font-size to use rem units and setting a max-size which matches native iOS.

Does this introduce a breaking change?

  • Yes
  • No

Other information

Dynamic type can be enabled with the following CSS:

html {
  --ion-dynamic-type: var(--ion-default-dynamic-font);
}

@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 28, 2023
Comment thread core/src/components/button/button.ios.vars.scss Outdated
Comment thread core/src/components/button/button.ios.vars.scss Outdated
Comment thread core/src/components/button/button.ios.vars.scss Outdated
@brandyscarney
brandyscarney marked this pull request as ready for review July 31, 2023 19:28
@brandyscarney
brandyscarney requested review from a team, liamdebeasi and mapsandapps and removed request for a team and mapsandapps July 31, 2023 19:28
Comment thread core/src/components/button/button.ios.vars.scss Outdated
Comment thread core/src/components/button/button.ios.vars.scss
Comment thread core/src/components/button/button.ios.vars.scss
Comment thread core/src/components/button/button.ios.vars.scss
Comment thread core/src/components/button/button.ios.vars.scss

@liamdebeasi liamdebeasi 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, great work! One outstanding question.

@brandyscarney
brandyscarney merged commit afcc7eb into FW-4146 Aug 4, 2023
@brandyscarney
brandyscarney deleted the FW-4422 branch August 4, 2023 16:44
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 `max-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