Skip to content

Commit

Permalink
fix: ios input zoom
Browse files Browse the repository at this point in the history
  • Loading branch information
DanWebb committed Apr 11, 2024
1 parent d12dac0 commit 63220d3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions components/control/Input/Input.css
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ diamond-input {
color: inherit;
display: block;
flex: 1 1 auto;
font-size: var(--diamond-input-font-size);
line-height: var(--diamond-input-line-height);
padding: var(--diamond-input-padding);

Expand Down
3 changes: 3 additions & 0 deletions styles/tokens/input.css
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,7 @@
var(--diamond-input-padding-inline);

--diamond-input-line-height: var(--diamond-font-line-height);

/* Should be 16px minimum to avoid IOS zoom */
--diamond-input-font-size: var(--diamond-font-size-default);
}

0 comments on commit 63220d3

Please sign in to comment.