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

fix: safari no longer adjusts text in landscape #27787

Merged
merged 2 commits into from
Jul 13, 2023
Merged

fix: safari no longer adjusts text in landscape #27787

merged 2 commits into from
Jul 13, 2023

Conversation

liamdebeasi
Copy link
Contributor

@liamdebeasi liamdebeasi commented Jul 12, 2023

Issue number: resolves #27782


What is the current behavior?

Ionic uses text-size-adjust to prevent browsers from resizing text in landscape mode in order to match native app behavior. However, WebKit only supports -webkit-text-size-adjust, so this fix never applied to iOS devices.

https://caniuse.com/?search=text-size-adjust

What is the new behavior?

  • Add -webkit-text-size-adjust where we use text-size-adjust

Does this introduce a breaking change?

  • Yes
  • No

Other information

Landscape

main branch
IMG_0046 IMG_0048

Portrait (Should be no changes)

main branch
IMG_0045 IMG_0047

@stackblitz
Copy link

stackblitz bot commented Jul 12, 2023

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 12, 2023
@liamdebeasi liamdebeasi marked this pull request as ready for review July 12, 2023 19:15
@liamdebeasi liamdebeasi requested review from a team and mapsandapps and removed request for a team July 12, 2023 19:15
@brandyscarney
Copy link
Member

Shouldn't this be automatically applied by autoprefixer?

@liamdebeasi
Copy link
Contributor Author

The files in src/css are not run through autoprefixer:

"css.sass": "sass --embed-sources src/css:./css",

@brandyscarney
Copy link
Member

Ah interesting. I feel like they should be but that's another problem ha.

@liamdebeasi liamdebeasi added this pull request to the merge queue Jul 13, 2023
Merged via the queue into main with commit 66584b0 Jul 13, 2023
@liamdebeasi liamdebeasi deleted the FW-4735 branch July 13, 2023 17:43
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.

bug: Safari adjusts font size in landscape orientation
3 participants