Skip to content

Commit

Permalink
Create account tweaks (#2365)
Browse files Browse the repository at this point in the history
* Disable autocomplete, autocapitalize, and autocorrect in create account login

* Add username textContentType to login to try to prompt password manager more regularly

* Fix type
  • Loading branch information
pfrazee authored Dec 28, 2023
1 parent 709b0b6 commit 9e330d2
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/view/com/auth/create/Step2.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ export function Step2({
onChange={value => uiDispatch({type: 'set-invite-code', value})}
accessibilityLabel={_(msg`Invite code`)}
accessibilityHint="Input invite code to proceed"
autoCapitalize="none"
autoComplete="off"
autoCorrect={false}
/>
</View>
)}
Expand Down Expand Up @@ -105,6 +108,9 @@ export function Step2({
accessibilityLabel={_(msg`Email`)}
accessibilityHint="Input email for Bluesky waitlist"
accessibilityLabelledBy="email"
autoCapitalize="none"
autoComplete="off"
autoCorrect={false}
/>
</View>

Expand All @@ -126,6 +132,9 @@ export function Step2({
accessibilityLabel={_(msg`Password`)}
accessibilityHint="Set password"
accessibilityLabelledBy="password"
autoCapitalize="none"
autoComplete="off"
autoCorrect={false}
/>
</View>

Expand Down
1 change: 1 addition & 0 deletions src/view/com/auth/login/LoginForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ export const LoginForm = ({
autoCorrect={false}
autoComplete="username"
returnKeyType="next"
textContentType="username"
onSubmitEditing={() => {
passwordInputRef.current?.focus()
}}
Expand Down
1 change: 1 addition & 0 deletions src/view/screens/Search/Search.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -612,6 +612,7 @@ export function SearchScreen(
) : (
<ScrollView
style={{height: '100%'}}
// @ts-ignore web only -prf
dataSet={{stableGutters: '1'}}
keyboardShouldPersistTaps="handled"
keyboardDismissMode="on-drag">
Expand Down

0 comments on commit 9e330d2

Please sign in to comment.