Fixing input validation messaging.#442
Fixing input validation messaging.#442parkeryoung wants to merge 1 commit intobootstrap-ruby:masterfrom
Conversation
In bootstrap 4 the classes for the input validations have changed. The 'form-group' div is now expected to have the 'has-danger' class. The message text is now supposed to have an 'form-control-feedback' class as opposed to an 'invalid-feedback' class. This also includes an update to the README to reflect this change.
Here's an example of a CHANGELOG.md entry (place it immediately under the * [#442](https://github.com/bootstrap-ruby/bootstrap_form/pull/442): Fixing input validation messaging. - [@parkeryoung](https://github.com/parkeryoung).Generated by 🚫 Danger |
|
Thanks for the contribution!
There is still some work in progress on validation error handling for check boxes and radio buttons, but I believe the validation errors other types of inputs are working in the master branch now. (Admittedly, many of those changes were merged into master recently.) Can you please explain further why you believe this PR is necessary? Again, thanks again for the contribution. |
|
@lcreid Oh my bad, I was looking at the wrong documentation and I suppose my project is behind the times. I'll close this, thanks for the feedback. I'll update my application's bootstrap version, If I notice anything else I'll be sure to send another PR, hopefully then it might actually be helpful. |
|
No worries. There were so many changes through the different betas of Bootstrap 4 that we've all experienced what you did. If you're interested in contributing, check the issues list. If an issue has an obvious answer and no one is working on it, add a comment briefly describing how you plan to solve it, then have a go. There aren't any issues like that on the list right now, but I suspect we'll have a few in a week or so. Thanks again for your willingness to help! |
In bootstrap 4 the classes for the input validations have changed. The
form-groupdiv is now expected to have thehas-dangerclass. Themessage text is now supposed to have a
form-control-feedbackclassas opposed to an
invalid-feedbackclass.I removed the
iconoption as it doesn't seem to be supported by bootstrap anymore.There are some parts I'm uncertain of, namely the places in the tests where it doesn't seem like the
form-control-feedbackis rendered. I'm not sure if we are supposed to put thehas-dangerclass on the div in these instances.This also includes an update to the README to reflect this change.
If there is anything that needs to be changed, let me know.