mirror of
https://github.com/wassname/talk.git
synced 2026-07-15 11:26:58 +08:00
[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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user