Skip to content

Commit

Permalink
Increase input font size to avoid zoom on iOS
Browse files Browse the repository at this point in the history
If the input font size is smaller than 16px, iOS zoom in the page when
the input gets focus.
  • Loading branch information
kpuputti committed Sep 21, 2021
1 parent 27da9e3 commit 019618b
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions src/styles/marketplaceDefaults.css
Original file line number Diff line number Diff line change
Expand Up @@ -206,12 +206,24 @@ h6 {
@apply --marketplaceH6FontStyles;
}

input,
input {
font-family: var(--fontFamily);
font-weight: var(--fontWeightMedium);
font-size: 16px;
line-height: 24px;
letter-spacing: -0.1px;
/* No margins for default font */

@media (--viewportMedium) {
font-size: 16px;
line-height: 32px;
}
}

textarea,
select,
li {
@apply --marketplaceDefaultFontStyles;
line-height: 24px;
}

p,
Expand Down

0 comments on commit 019618b

Please sign in to comment.