Closed isaac closed 2 years ago
Thanks for catching this, and thanks for the PR. It looks good, but I'd appreciate it if you can fix the test cases so they all pass. Don't worry about the Danger test failing -- there's an issue with Danger on GitHub that doesn't seem to have a solution, but we haven't disabled Danger yet. Sorry.
@isaac Thanks for the PR! Could you fix the one failing test case and rebase against main?
@lcreid @UweKubosch @donv
Sorry for the slow response!
I couldn't find a failing test case - has this already been fixed somewhere else?
@isaac Yes, I fixed it 😄
Examples in thre README: https://github.com/bootstrap-ruby/bootstrap_form#alert-messages
When there is no error summary the alert message is wrapped in a p tag. This causes the message to be misaligned vertically. In the Bootstrap examples where there is single line of text, the text is not wrapped in a p tag: https://getbootstrap.com/docs/5.0/components/alerts/#examples
Screenshots below illustrate the issue.
Before fix:
After fix: