Semantic-UI icon indicating copy to clipboard operation
Semantic-UI copied to clipboard

[Form / Input] Add Success State for Input, Form Validation

Open gluons opened this issue 10 years ago • 10 comments

Success state is important. Please let it be avaliable in Form.

<div class="ui form">
    <div class="field success">
        <label>Username</label>
        <input placeholder="Username" type="text">
    </div>
</div>

gluons avatar Jun 15 '15 07:06 gluons

There's an undocumented success state on form. Which will show success message in form, but there is no input styles for success.

I've added this as an enhancement.

jlukic avatar Jun 15 '15 16:06 jlukic

Now, I can't find this in Semantic-UI 2. I've tried to create custom success state.

Success State

.ui.form .field.success label {
    color: #308330;
}
.ui.form .field.success input {
    background: #f4faf4 none repeat scroll 0 0;
    border-color: #a3c293;
    border-radius: 0.285714rem;
    box-shadow: none;
    color: #308330;
}
/* Success Placeholder */
.ui.form .success ::-webkit-input-placeholder {
    color: #5e9e5e;
}
.ui.form .success ::-ms-input-placeholder {
    color: #5e9e5e;
}
.ui.form .success ::-moz-placeholder {
    color: #5e9e5e;
}
.ui.form .success :focus::-webkit-input-placeholder {
    color: #558e55;
}
.ui.form .success :focus::-ms-input-placeholder {
    color: #558e55;
}
.ui.form .success :focus::-moz-placeholder {
    color: #558e55;
}

gluons avatar Jul 02 '15 06:07 gluons

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 30 days if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Feb 24 '18 08:02 stale[bot]

Oh stale! Don't close this. 😰

gluons avatar Feb 24 '18 08:02 gluons

+1

JuhQ avatar Mar 06 '18 22:03 JuhQ

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 30 days if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jun 04 '18 23:06 stale[bot]

stale please.

Nooooooo

gluons avatar Jun 05 '18 02:06 gluons

+1

MatheoDumont avatar Jul 20 '18 00:07 MatheoDumont

I would have expected this to be implemented the same way as error :confused:

+1

elamperti avatar Nov 04 '18 20:11 elamperti

Implemented in the community fork https://github.com/fomantic/Fomantic-UI See https://fomantic-ui.com/collections/form.html#field-success

lubber-de avatar May 17 '21 21:05 lubber-de