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

feat(tokens): make font-size use px-to-rem() #29547

Merged
merged 10 commits into from
May 31, 2024
Merged

Conversation

BenOsodrac
Copy link
Contributor

@BenOsodrac BenOsodrac commented May 23, 2024

Issue number: internal


What is the new behavior?

This PR intends to make sure all font-size related tokens are generated suing the px-to-rem() scss function, so that the fonts correctly scale in runtime to zoom/A11y preferences.

  • Added new utility to generate the expected css and scss variable using the px-to-rem()
  • Added @use on generated scss and css foundations files.

Does this introduce a breaking change?

  • Yes
  • No

@BenOsodrac BenOsodrac added type: feature request a new feature, enhancement, or improvement package: core @ionic/core package labels May 23, 2024
@BenOsodrac BenOsodrac requested a review from a team as a code owner May 23, 2024 14:08
Copy link

vercel bot commented May 23, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
ionic-framework ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 31, 2024 7:57am

Co-authored-by: Brandy Carney <brandyscarney@users.noreply.github.com>
Copy link
Member

@brandyscarney brandyscarney left a comment

Choose a reason for hiding this comment

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

Code works great 👍

@BenOsodrac BenOsodrac merged commit 6246245 into next May 31, 2024
46 checks passed
@BenOsodrac BenOsodrac deleted the improve-font-tokens branch May 31, 2024 08:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package: core @ionic/core package type: feature request a new feature, enhancement, or improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants