I am not sure if simple_form can be configured to provide what Foundation 6 requires for fields with errors.
Until I can figure that out (if, if, if), I have this hack in place using Sass @extend
:
// TODO: This is a hack to get Foundation 6 styles on simple_form
// elements with errors.
.input.error {
label {
@extend .is-invalid-label;
}
input,
textarea,
select {
@extend .is-invalid-input;
}
small.error {
@extend .form-error;
@extend .is-visible;
}
}
Are you dissatisfied with this answer? I am too. I hope that someone can "show me up" on this with a better answer.