kopia lustrzana https://gitlab.com/soapbox-pub/soapbox
Merge branch 'ios-improvements' into 'develop'
Improve mobile input fields See merge request soapbox-pub/soapbox-fe!851features-override
commit
d7cae9c3ec
|
@ -14,7 +14,9 @@ exports[`<NativeCaptchaField /> renders correctly 1`] = `
|
||||||
className="input required"
|
className="input required"
|
||||||
>
|
>
|
||||||
<input
|
<input
|
||||||
|
autoCapitalize="off"
|
||||||
autoComplete="off"
|
autoComplete="off"
|
||||||
|
autoCorrect="off"
|
||||||
onChange={[Function]}
|
onChange={[Function]}
|
||||||
placeholder="Enter the pictured text"
|
placeholder="Enter the pictured text"
|
||||||
required={true}
|
required={true}
|
||||||
|
|
|
@ -14,7 +14,9 @@ exports[`<LoginForm /> renders for Mastodon 1`] = `
|
||||||
>
|
>
|
||||||
<input
|
<input
|
||||||
aria-label="Username"
|
aria-label="Username"
|
||||||
|
autoCapitalize="off"
|
||||||
autoComplete="off"
|
autoComplete="off"
|
||||||
|
autoCorrect="off"
|
||||||
className="string email"
|
className="string email"
|
||||||
name="username"
|
name="username"
|
||||||
placeholder="Username"
|
placeholder="Username"
|
||||||
|
@ -27,7 +29,9 @@ exports[`<LoginForm /> renders for Mastodon 1`] = `
|
||||||
>
|
>
|
||||||
<input
|
<input
|
||||||
aria-label="Password"
|
aria-label="Password"
|
||||||
|
autoCapitalize="off"
|
||||||
autoComplete="off"
|
autoComplete="off"
|
||||||
|
autoCorrect="off"
|
||||||
className="password"
|
className="password"
|
||||||
name="password"
|
name="password"
|
||||||
placeholder="Password"
|
placeholder="Password"
|
||||||
|
@ -74,7 +78,9 @@ exports[`<LoginForm /> renders for Pleroma 1`] = `
|
||||||
>
|
>
|
||||||
<input
|
<input
|
||||||
aria-label="Username"
|
aria-label="Username"
|
||||||
|
autoCapitalize="off"
|
||||||
autoComplete="off"
|
autoComplete="off"
|
||||||
|
autoCorrect="off"
|
||||||
className="string email"
|
className="string email"
|
||||||
name="username"
|
name="username"
|
||||||
placeholder="Username"
|
placeholder="Username"
|
||||||
|
@ -87,7 +93,9 @@ exports[`<LoginForm /> renders for Pleroma 1`] = `
|
||||||
>
|
>
|
||||||
<input
|
<input
|
||||||
aria-label="Password"
|
aria-label="Password"
|
||||||
|
autoCapitalize="off"
|
||||||
autoComplete="off"
|
autoComplete="off"
|
||||||
|
autoCorrect="off"
|
||||||
className="password"
|
className="password"
|
||||||
name="password"
|
name="password"
|
||||||
placeholder="Password"
|
placeholder="Password"
|
||||||
|
|
|
@ -17,7 +17,9 @@ exports[`<LoginPage /> renders correctly on load 1`] = `
|
||||||
>
|
>
|
||||||
<input
|
<input
|
||||||
aria-label="Username"
|
aria-label="Username"
|
||||||
|
autoCapitalize="off"
|
||||||
autoComplete="off"
|
autoComplete="off"
|
||||||
|
autoCorrect="off"
|
||||||
className="string email"
|
className="string email"
|
||||||
name="username"
|
name="username"
|
||||||
placeholder="Username"
|
placeholder="Username"
|
||||||
|
@ -30,7 +32,9 @@ exports[`<LoginPage /> renders correctly on load 1`] = `
|
||||||
>
|
>
|
||||||
<input
|
<input
|
||||||
aria-label="Password"
|
aria-label="Password"
|
||||||
|
autoCapitalize="off"
|
||||||
autoComplete="off"
|
autoComplete="off"
|
||||||
|
autoCorrect="off"
|
||||||
className="password"
|
className="password"
|
||||||
name="password"
|
name="password"
|
||||||
placeholder="Password"
|
placeholder="Password"
|
||||||
|
|
|
@ -107,6 +107,8 @@ export const NativeCaptchaField = ({ captcha, onChange, onClick, name, value })
|
||||||
name={name}
|
name={name}
|
||||||
value={value}
|
value={value}
|
||||||
autoComplete='off'
|
autoComplete='off'
|
||||||
|
autoCorrect='off'
|
||||||
|
autoCapitalize='off'
|
||||||
onChange={onChange}
|
onChange={onChange}
|
||||||
required
|
required
|
||||||
/>
|
/>
|
||||||
|
|
|
@ -40,6 +40,8 @@ class LoginForm extends ImmutablePureComponent {
|
||||||
type='text'
|
type='text'
|
||||||
name='username'
|
name='username'
|
||||||
autoComplete='off'
|
autoComplete='off'
|
||||||
|
autoCorrect='off'
|
||||||
|
autoCapitalize='off'
|
||||||
required
|
required
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
@ -51,6 +53,8 @@ class LoginForm extends ImmutablePureComponent {
|
||||||
type='password'
|
type='password'
|
||||||
name='password'
|
name='password'
|
||||||
autoComplete='off'
|
autoComplete='off'
|
||||||
|
autoCorrect='off'
|
||||||
|
autoCapitalize='off'
|
||||||
required
|
required
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -172,6 +172,8 @@ class RegistrationForm extends ImmutablePureComponent {
|
||||||
name='username'
|
name='username'
|
||||||
hint={intl.formatMessage(messages.username_hint)}
|
hint={intl.formatMessage(messages.username_hint)}
|
||||||
autoComplete='off'
|
autoComplete='off'
|
||||||
|
autoCorrect='off'
|
||||||
|
autoCapitalize='off'
|
||||||
pattern='^[a-zA-Z\d_-]+'
|
pattern='^[a-zA-Z\d_-]+'
|
||||||
onChange={this.onInputChange}
|
onChange={this.onInputChange}
|
||||||
required
|
required
|
||||||
|
@ -181,6 +183,8 @@ class RegistrationForm extends ImmutablePureComponent {
|
||||||
name='email'
|
name='email'
|
||||||
type='email'
|
type='email'
|
||||||
autoComplete='off'
|
autoComplete='off'
|
||||||
|
autoCorrect='off'
|
||||||
|
autoCapitalize='off'
|
||||||
onChange={this.onInputChange}
|
onChange={this.onInputChange}
|
||||||
required
|
required
|
||||||
/>
|
/>
|
||||||
|
@ -189,6 +193,8 @@ class RegistrationForm extends ImmutablePureComponent {
|
||||||
name='password'
|
name='password'
|
||||||
type='password'
|
type='password'
|
||||||
autoComplete='off'
|
autoComplete='off'
|
||||||
|
autoCorrect='off'
|
||||||
|
autoCapitalize='off'
|
||||||
onChange={this.onInputChange}
|
onChange={this.onInputChange}
|
||||||
required
|
required
|
||||||
/>
|
/>
|
||||||
|
@ -197,6 +203,8 @@ class RegistrationForm extends ImmutablePureComponent {
|
||||||
name='confirm'
|
name='confirm'
|
||||||
type='password'
|
type='password'
|
||||||
autoComplete='off'
|
autoComplete='off'
|
||||||
|
autoCorrect='off'
|
||||||
|
autoCapitalize='off'
|
||||||
onChange={this.onInputChange}
|
onChange={this.onInputChange}
|
||||||
required
|
required
|
||||||
/>
|
/>
|
||||||
|
@ -206,7 +214,6 @@ class RegistrationForm extends ImmutablePureComponent {
|
||||||
hint={<FormattedMessage id='registration.reason_hint' defaultMessage='This will help us review your application' />}
|
hint={<FormattedMessage id='registration.reason_hint' defaultMessage='This will help us review your application' />}
|
||||||
name='reason'
|
name='reason'
|
||||||
maxLength={500}
|
maxLength={500}
|
||||||
autoComplete='off'
|
|
||||||
onChange={this.onInputChange}
|
onChange={this.onInputChange}
|
||||||
required
|
required
|
||||||
/>}
|
/>}
|
||||||
|
|
|
@ -53,7 +53,7 @@ class ExternalLoginForm extends ImmutablePureComponent {
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<SimpleForm onSubmit={this.handleSubmit}>
|
<SimpleForm onSubmit={this.handleSubmit} className='external-login'>
|
||||||
<fieldset disabled={isLoading}>
|
<fieldset disabled={isLoading}>
|
||||||
<FieldsGroup>
|
<FieldsGroup>
|
||||||
<TextInput
|
<TextInput
|
||||||
|
@ -63,6 +63,8 @@ class ExternalLoginForm extends ImmutablePureComponent {
|
||||||
value={this.state.host}
|
value={this.state.host}
|
||||||
onChange={this.handleHostChange}
|
onChange={this.handleHostChange}
|
||||||
autoComplete='off'
|
autoComplete='off'
|
||||||
|
autoCorrect='off'
|
||||||
|
autoCapitalize='off'
|
||||||
required
|
required
|
||||||
/>
|
/>
|
||||||
</FieldsGroup>
|
</FieldsGroup>
|
||||||
|
|
|
@ -126,6 +126,7 @@ export class SimpleForm extends ImmutablePureComponent {
|
||||||
|
|
||||||
static propTypes = {
|
static propTypes = {
|
||||||
children: PropTypes.node,
|
children: PropTypes.node,
|
||||||
|
className: PropTypes.string,
|
||||||
};
|
};
|
||||||
|
|
||||||
static defaultProps = {
|
static defaultProps = {
|
||||||
|
@ -139,9 +140,14 @@ export class SimpleForm extends ImmutablePureComponent {
|
||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const { children, onSubmit, ...props } = this.props;
|
const { className, children, onSubmit, ...props } = this.props;
|
||||||
return (
|
return (
|
||||||
<form className='simple_form' method='post' onSubmit={this.onSubmit} {...props}>
|
<form
|
||||||
|
className={classNames('simple_form', className)}
|
||||||
|
method='post'
|
||||||
|
onSubmit={this.onSubmit}
|
||||||
|
{...props}
|
||||||
|
>
|
||||||
{children}
|
{children}
|
||||||
</form>
|
</form>
|
||||||
);
|
);
|
||||||
|
|
|
@ -295,6 +295,7 @@ code {
|
||||||
input[type=text],
|
input[type=text],
|
||||||
input[type=number],
|
input[type=number],
|
||||||
input[type=email],
|
input[type=email],
|
||||||
|
input[type=url],
|
||||||
input[type=password],
|
input[type=password],
|
||||||
textarea {
|
textarea {
|
||||||
color: var(--primary-text-color--faint);
|
color: var(--primary-text-color--faint);
|
||||||
|
@ -305,6 +306,7 @@ code {
|
||||||
input[type=text],
|
input[type=text],
|
||||||
input[type=number],
|
input[type=number],
|
||||||
input[type=email],
|
input[type=email],
|
||||||
|
input[type=url],
|
||||||
input[type=password],
|
input[type=password],
|
||||||
textarea,
|
textarea,
|
||||||
.rfipbtn {
|
.rfipbtn {
|
||||||
|
@ -348,6 +350,7 @@ code {
|
||||||
input[type=text][disabled],
|
input[type=text][disabled],
|
||||||
input[type=number][disabled],
|
input[type=number][disabled],
|
||||||
input[type=email][disabled],
|
input[type=email][disabled],
|
||||||
|
input[type=url][disabled],
|
||||||
input[type=password][disabled],
|
input[type=password][disabled],
|
||||||
textarea[disabled] {
|
textarea[disabled] {
|
||||||
color: var(--primary-text-color--faint);
|
color: var(--primary-text-color--faint);
|
||||||
|
@ -362,6 +365,7 @@ code {
|
||||||
input[type=text],
|
input[type=text],
|
||||||
input[type=number],
|
input[type=number],
|
||||||
input[type=email],
|
input[type=email],
|
||||||
|
input[type=url],
|
||||||
input[type=password],
|
input[type=password],
|
||||||
textarea,
|
textarea,
|
||||||
select {
|
select {
|
||||||
|
|
Ładowanie…
Reference in New Issue