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 <h1> wrapping #2367

Merged
merged 1 commit into from
Sep 20, 2023
Merged

Fix <h1> wrapping #2367

merged 1 commit into from
Sep 20, 2023

Conversation

mike29736
Copy link
Contributor

Without #present?, yield seems to generate a false positive. I guess it could be returning an empty string by default.

That false positive was squashing all of our page's <h1>s into a one-third column, forcing even fairly short page headings to wrap

Before

Screenshot from 2023-09-20 11-50-19
Screenshot from 2023-09-20 11-57-01

After

Screenshot from 2023-09-20 12-09-09
Screenshot from 2023-09-20 12-08-19

Without `#present?`, `yield` seems to generate a false positive. I guess
it could be returning an empty string by default.

That false positive was squashing all of our page's <h1>s into
a one-third column, forcing even fairly short page headings to wrap
Copy link
Contributor

@chrisroos chrisroos left a comment

Choose a reason for hiding this comment

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

Looks good to me! (I've just fixed the same problem in my branch but can get rid of that now)

@mike29736 mike29736 merged commit e485c5f into main Sep 20, 2023
7 checks passed
@mike29736 mike29736 deleted the fix-admin-template-h1 branch September 20, 2023 11:28
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.

2 participants