I'm not sure that simple_form can be customized to provide what Foundation 6 requires for error fields.
Until I can figure it out (if, if, if), I have this hack 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 unhappy with this answer? So do I. I hope someone can βshow meβ on this with a better answer.
Chris peters
source share