Skip to content

Commit ae1c5cd

Browse files
committed
fix(clerk-js): Fix the input box-shadow on iOS 16 devices
1 parent 452dfe4 commit ae1c5cd

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.changeset/light-doors-teach.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@clerk/clerk-js': patch
3+
---
4+
5+
Fix the input box-shadow on iOS 16 devices

packages/clerk-js/src/ui/primitives/Input.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,12 @@ const { applyVariants, filterProps } = createVariants((theme, props) => ({
2121
accentColor: theme.colors.$primary500,
2222
...common.textVariants(theme).body,
2323
...common.disabled(theme),
24+
// This is a workaround to prevent zooming on iOS when focusing an input
2425
[mqu.ios]: {
2526
fontSize: theme.fontSizes.$lg,
2627
},
28+
// This is a fix for iOS webkit on iOS below 16, where the input is not respecting the box-shadow
29+
WebkitAppearance: 'none',
2730
':autofill': {
2831
animationName: 'onAutoFillStart',
2932
},

0 commit comments

Comments
 (0)