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

chore: enable dynamic font scaling #1805

Merged
merged 4 commits into from
Oct 4, 2023
Merged

chore: enable dynamic font scaling #1805

merged 4 commits into from
Oct 4, 2023

Conversation

mapsandapps
Copy link
Contributor

@mapsandapps mapsandapps commented Sep 29, 2023

Enable dynamic font scaling & adjust a few things to look better at large font sizes.

See ionic-team/ionic-react-conference-app#122 for the React version.

You can test it out with:

    "@ionic/angular": "7.4.2-dev.11695944163.13e7414e",
    "ionicons": "7.1.3-dev.11695669134.18369c36",

Perhaps we don't want to merge this until the relevant link in the docs is in prod.

@@ -24,6 +24,8 @@ ion-menu.md ion-list-header {
padding-right: 18px;
padding-left: 18px;

font-size: min(1.375rem, 36px);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I would have preferred to truncate instead of adjusting the font size, but there's no shadow part for the element I would need to target to truncate.

@mapsandapps mapsandapps marked this pull request as ready for review September 29, 2023 20:18
@mapsandapps mapsandapps requested review from a team and liamdebeasi and removed request for a team September 29, 2023 20:18
Copy link
Contributor

@liamdebeasi liamdebeasi left a comment

Choose a reason for hiding this comment

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

One change, otherwise looks good

src/app/app.component.scss Outdated Show resolved Hide resolved
@mapsandapps mapsandapps merged commit 466be86 into main Oct 4, 2023
2 checks passed
@mapsandapps mapsandapps deleted the FW-5122 branch October 4, 2023 19:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants