Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove is-validating, is-required and is-disabled CSS classes from <BsForm::Element> #1632

Merged

Conversation

jelhan
Copy link
Contributor

@jelhan jelhan commented Oct 20, 2021

This removes the CSS class .is-validating, .is-required and .is-disabled CSS classes. The CSS classes were applied to the <div> wrapper rendered by <BsForm::Element> in some cases. None of these classes is officially supported by Bootstrap.

.is-required and .is-disabled CSS class were only set if @required or @disabled argument was set. Both arguments were deprecated and officially removed in Boostrap 4. They weren't part of the public API anymore. Removing the CSS classes rendered by them should be considered clean-up and not a breaking change in my opinion.

.is-validating CSS class was set while form element validation was pending. The class is not officially supported by Bootstrap. Removing it is a breaking change.

There isn't an official migration path for applications depending on it. In case your application relied on any of them, please open an issue.

Closes #1261

Copy link
Contributor

@simonihmig simonihmig left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@simonihmig simonihmig merged commit 8c25e6c into master Oct 21, 2021
@simonihmig simonihmig deleted the drop-class-not-supported-by-bootstrap-from-form-element branch October 21, 2021 07:51
@simonihmig simonihmig changed the title remove is-validating, is-required and is-disabled CSS classes from <BsForm::Element> remove is-validating, is-required and is-disabled CSS classes from <BsForm::Element> Oct 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

disabled, is-required and is-validating classes rendered on .form-group element do not exist in Bootstrap
2 participants