Skip to content

fix(clerk-js): Fix the input box-shadow on iOS 16 devices #2946

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

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/light-doors-teach.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@clerk/clerk-js': patch
---

Fix the input box-shadow on iOS 16 devices
3 changes: 3 additions & 0 deletions packages/clerk-js/src/ui/primitives/Input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,12 @@ const { applyVariants, filterProps } = createVariants((theme, props) => ({
accentColor: theme.colors.$primary500,
...common.textVariants(theme).body,
...common.disabled(theme),
// This is a workaround to prevent zooming on iOS when focusing an input
[mqu.ios]: {
fontSize: theme.fontSizes.$lg,
},
// This is a fix for iOS webkit on iOS below 16, where the input is not respecting the box-shadow
WebkitAppearance: 'none',
':autofill': {
animationName: 'onAutoFillStart',
},
Expand Down