Skip to content

Commit

Permalink
Merge pull request #168 from teamhanko/fix-inputs
Browse files Browse the repository at this point in the history
small changes to input properties and example css
  • Loading branch information
FlxMgdnz authored Aug 4, 2022
2 parents d4dc551 + ce7ddae commit dea8e0a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
5 changes: 1 addition & 4 deletions example/public/assets/css/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,8 @@
}

@media screen and (max-width: 470px) {
.main {
margin-top: 8px;
}
.auth-container {
padding: 5px;
padding: 10px;
}
}

Expand Down
2 changes: 1 addition & 1 deletion hanko-js/src/ui/components/InputPasscodeDigit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const InputPasscodeDigit = ({ index, focus, digit = "", ...props }: Props) => {
part={"input passcode-input"}
name={props.name + index.toString(10)}
type={"text"}
inputmode={"numeric"}
inputMode={"numeric"}
maxLength={1}
ref={ref}
value={digit.charAt(0)}
Expand Down
5 changes: 3 additions & 2 deletions hanko-js/src/ui/pages/LoginEmail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,8 @@ const LoginEmail = () => {
<InputText
name={"email"}
type={"email"}
autocomplete={"username"}
autoComplete={"username"}
autoCorrect={"off"}
required={true}
onInput={onEmailInput}
value={email}
Expand All @@ -194,7 +195,7 @@ const LoginEmail = () => {
isPasskeyLoginLoading ||
isPasskeyLoginSuccess
}
autofocus
autoFocus
/>
<Button
isLoading={isEmailLoginLoading}
Expand Down

0 comments on commit dea8e0a

Please sign in to comment.