Skip to content
This repository has been archived by the owner on Feb 8, 2024. It is now read-only.

Commit

Permalink
Update FormLogin.tsx (#608)
Browse files Browse the repository at this point in the history
* Update FormLogin.tsx

* Update FormLogin.story.test.tsx.snap

Updated FormLogin story snapshot

* Update FieldInput.tsx

Added  type 'tel' to FieldInput

Co-authored-by: Zac Bergquist <[email protected]>
  • Loading branch information
t-rutter and zmb3 authored Mar 2, 2022
1 parent 0b6ca8c commit 5f8aef1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/shared/components/FieldInput/FieldInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ type Props = {
placeholder?: string;
autoFocus?: boolean;
autoComplete?: 'off' | 'on';
type?: 'email' | 'text' | 'password' | 'number' | 'date' | 'week';
type?: 'email' | 'text' | 'password' | 'number' | 'date' | 'week' | 'tel';
rule?: (options: unknown) => () => unknown;
onChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
onKeyPress?: (e: React.KeyboardEvent<HTMLInputElement>) => void;
Expand Down
1 change: 1 addition & 0 deletions packages/teleport/src/components/FormLogin/FormLogin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ export default function LoginForm(props: Props) {
autoComplete="off"
value={token}
onChange={e => setToken(e.target.value)}
type="tel"
placeholder="123 456"
mb={0}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -914,7 +914,7 @@ exports[`auth2faType: otp rendering 1`] = `
class="c5"
color="text.onLight"
placeholder="123 456"
type="text"
type="tel"
value=""
/>
</div>
Expand Down

0 comments on commit 5f8aef1

Please sign in to comment.