Skip to content

Commit f26537b

Browse files
authored
feat(ui): Change showOptionalFields default to false (#7365)
1 parent 4f77b13 commit f26537b

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@clerk/ui': minor
3+
---
4+
5+
Changed the default value of `appearance.layout.showOptionalFields` from `true` to `false`. Optional fields are now hidden by default during sign up. Users can still explicitly set `showOptionalFields: true` to show optional fields.
6+

packages/ui/src/customizables/parseAppearance.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ const defaultLayout: ParsedLayout = {
4444
socialButtonsVariant: 'auto',
4545
logoImageUrl: '',
4646
logoLinkUrl: '',
47-
showOptionalFields: true,
47+
showOptionalFields: false,
4848
helpPageUrl: '',
4949
privacyPageUrl: '',
5050
termsPageUrl: '',

packages/ui/src/internal/appearance.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -964,7 +964,7 @@ export type Layout = {
964964
* Controls whether the SignIn or SignUp forms will include optional fields.
965965
* You can make a field required or optional through the {@link https://dashboard.clerk.com|Clerk dashboard}.
966966
*
967-
* @default true
967+
* @default false
968968
*/
969969
showOptionalFields?: boolean;
970970
/**

0 commit comments

Comments
 (0)