Repository navigation
[Fix/#104] iOS에서 입력칸을 누르면 화면이 확대되는 문제 수정 - #109
Merged
Merged
Conversation
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configuration
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
github-actions
Bot
requested review from
jjunh33,
leegain1,
tnals0924 and
xeoxxn
October 8, 2026 08:06
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#️⃣연관된 이슈
🎯 해결하려는 문제가 무엇인가요?
iOS에서 입력칸을 누르면 화면이 자동으로 확대되고, PWA에서는 배율이 원래대로 돌아오지 않아 이후 화면이 잘려 보인다. iOS는 focus된 입력 요소의 글자가 16px 미만이면 확대하는데, 우리 입력칸은 Figma 크기라 조건에 걸린다.
디자이너 요청으로 글자를 16px로 키우지 않고 Figma 크기를 지켜야 한다.
❓ 왜 해결해야 하나요?
입력이 주된 동작인 화면(챗봇·행사 신청)에서 한 번 누르면 화면이 커진 채로 남아, 앱을 다시 켜야 할 정도로 쓰기 어렵다.
⭐ 어떻게 해결했나요?
1. iOS에서만 viewport에
maximum-scale=1(index.html)maximum-scale=1이 있으면 iOS는 입력칸 포커스 시 자동 확대를 하지 않는다. 글자 크기와 관계없이 확대 자체가 일어나지 않는다2. 입력칸 글자를
Typography as="input"으로 통일 (챗봇·검색·행사 기타)<input>은 Typography로 감쌀 수 없다"며text-[14px]·leading-[…]·tracking-[…]를 직접 박고 있었다. WDSTypography는as로 태그를 바꿀 수 있어서 입력칸 자체가 WDS 글자 스타일을 받게 했다Label 1/Reading(줄 높이 22px)이라label1-reading으로 맞췄다body2body1label1-reading3. 문서
component-convention.md: 입력칸도Typography as="input"으로 그리고 px 값을 박지 않는다, iOS 확대는 viewport 설정으로 막는다wds-component-usage.md: "<input>은 Typography로 못 감싼다"는 행사·검색 설명 수정🧩 이 PR의 한계 & 트레이드오프
maximum-scale=1로 포커스 확대가 막히는 건 오래 유지된 iOS 동작이지만 공식 사양은 아니라, iOS 업데이트로 바뀔 수 있다⛓️ 기존 기능에 미치는 영향
ref) 동작도 그대로다🔀 Edge Case & 실패 시나리오
maximum-scale=1이 붙는다 / Android·데스크톱: 안 붙는다(기기 흉내로 메타 값 확인)📋 검토한 대안과 선택 이유
maximum-scale=1— 가장 간단하지만 Android 핀치 줌을 막고 접근성 검사에 걸린다transform: scale·터치 기기 미디어쿼리 — 커서·선택 영역이 어긋나거나 실기기 크기가 결국 16px이 된다💬 리뷰 포인트
[c]index.html의 iOS 판별 스크립트[a]아이폰 실기기 확인: 아이폰 Safari에서 행사 기타·챗봇·검색 입력칸을 눌러도 확대되지 않고, 두 손가락 확대는 되는 것을 확인했다. 앱 WebView에서도 한 번 확인 부탁