[next] Email/Password Improvements (#2400)

* feat: improved some password/email fields

- All secret fields are now "hidden" by default
- All email fields now have autocomplete/spellcheck disabled with
  correct typings

* feat: add additional email validation
This commit is contained in:
Wyatt Johnson
2019-07-12 21:07:14 +00:00
committed by GitHub
parent f95b705585
commit bc0b0d0339
18 changed files with 584 additions and 190 deletions
@@ -1,7 +1,6 @@
.root {
width: calc(29 * var(--mini-unit));
height: 36px;
width: 100%;
line-height: 36px;
box-sizing: border-box;
}
@@ -75,6 +75,10 @@ class PasswordField extends Component<PasswordFieldProps, State> {
placeholder: "",
showPasswordTitle: "Hide password",
hidePasswordTitle: "Show password",
autoCapitalize: "off",
autoCorrect: "off",
autoComplete: "off",
spellCheck: false,
};
public state = {
@@ -8,9 +8,13 @@ exports[`renders correctly 1`] = `
className="PasswordField-wrapper"
>
<input
autoCapitalize="off"
autoComplete="off"
autoCorrect="off"
className="PasswordField-colorRegular PasswordField-input"
defaultValue="Hello World"
placeholder=""
spellCheck={false}
type="password"
/>
<div
@@ -39,9 +43,13 @@ exports[`renders correctly 2`] = `
className="PasswordField-wrapper"
>
<input
autoCapitalize="off"
autoComplete="off"
autoCorrect="off"
className="PasswordField-colorRegular PasswordField-input"
defaultValue="Hello World"
placeholder=""
spellCheck={false}
type="text"
/>
<div