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

Fluent: increase send box text size to prevent unwanted zoom on mobile #5192

Merged
merged 3 commits into from
May 28, 2024

Conversation

OEvgeny
Copy link
Collaborator

@OEvgeny OEvgeny commented May 22, 2024

Fixes #5169.

Changelog Entry

  • Fixed send box zoomed in when clicked on mobile Safari, in PR 5192, by @OEvgeny

Description

Increase the default font size only when focused and only when both: hover is not supported and coarse pointer conditions apply.

Design

We may want to remove hover: none part to target any device with coarse pointer, but usually hover support means that there might be other ways to hover which include more precise navigation.

Specific Changes

  • Added needed CSS styles
  • Added a test
  • I have added tests and executed them locally
  • I have updated CHANGELOG.md
  • I have updated documentation

Review Checklist

This section is for contributors to review your work.

  • Accessibility reviewed (tab order, content readability, alt text, color contrast)
  • Browser and platform compatibilities reviewed
  • CSS styles reviewed (minimal rules, no z-index)
  • Documents reviewed (docs, samples, live demo)
  • Internationalization reviewed (strings, unit formatting)
  • package.json and package-lock.json reviewed
  • Security reviewed (no data URIs, check for nonce leak)
  • Tests reviewed (coverage, legitimacy)

@OEvgeny OEvgeny changed the title Fluent: increase focused send box text size to prevent unwanted zoom … Fluent: increase send box text size to prevent unwanted zoom on mobile May 22, 2024
@OEvgeny OEvgeny marked this pull request as ready for review May 22, 2024 18:35
@compulim
Copy link
Contributor

Is there any other ways than changing font size...?

@OEvgeny
Copy link
Collaborator Author

OEvgeny commented May 28, 2024

Is there any other ways than changing font size...?

Our users can opt-out from pinch to zoom to prevent the zoom-in action. But overall 16px min font-size on controls is a platform requirement.

@compulim
Copy link
Contributor

Need changelog and this is good. 🙂

@compulim compulim enabled auto-merge (squash) May 28, 2024 18:47
@compulim compulim merged commit 058cccb into main May 28, 2024
25 checks passed
@compulim compulim deleted the fix/mobile-safari-zoom branch May 28, 2024 18:53
OEvgeny added a commit that referenced this pull request May 30, 2024
#5192)

* Fluent: increase focused send box text size to prevent unwanted zoom on mobile

* Self review

* Changelog
OEvgeny added a commit that referenced this pull request Jun 26, 2024
#5192)

* Fluent: increase focused send box text size to prevent unwanted zoom on mobile

* Self review

* Changelog
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.

[Fluent UI] [iOS] Should not zoom when focusing on the send box
2 participants