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

Fix text alignment in alert message when there is no error summary #634

Merged
merged 1 commit into from
Apr 29, 2022

Conversation

isaac
Copy link
Contributor

@isaac isaac commented Jan 25, 2022

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:
Before
After fix:
After

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
@lcreid
Copy link
Contributor

lcreid commented Jan 26, 2022

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.

@UweKubosch
Copy link
Contributor

@isaac Thanks for the PR! Could you fix the one failing test case and rebase against main?

@donv donv merged commit dd473be into bootstrap-ruby:main Apr 29, 2022
@isaac
Copy link
Contributor Author

isaac commented May 8, 2022

@lcreid @UweKubosch @donv

Sorry for the slow response!

I couldn't find a failing test case - has this already been fixed somewhere else?

@donv
Copy link
Collaborator

donv commented May 11, 2022

@isaac Yes, I fixed it 😄

@donv
Copy link
Collaborator

donv commented May 11, 2022

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.

4 participants