Skip to content

Add has-validation to input groups that contain error feedback - #806

Open
rafayqayyum wants to merge 1 commit into
bootstrap-ruby:mainfrom
rafayqayyum:input-group-has-validation
Open

rafayqayyum wants to merge 1 commit into
bootstrap-ruby:mainfrom
rafayqayyum:input-group-has-validation

Conversation

@rafayqayyum

Copy link
Copy Markdown

Fixes #795.

prepend_and_append_input renders the .invalid-feedback element inside .input-group, but never adds .has-validation, which Bootstrap 5.3 requires so the last add-on or input keeps its rounded corners. This adds the class when the inline error is rendered. With inline_errors: false there's no feedback inside the group, so the class isn't added.

Updated the existing prepend/append validation-error test and added an inline_errors: false case. Thanks to @karaaslanz for the trace in the issue.

Copilot AI balanced review requested due to automatic review settings November 8, 2026 13:47

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"input-group" requires "has-validation" on error

2 participants