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

Treat Verse lines consistently on the front end #9584

Merged
merged 1 commit into from
Sep 5, 2018

Conversation

brandonpayton
Copy link
Member

Description

Today, we prevent wrapping Verse block lines in the editor because we want to preserve the author's intent, but that intent is not respected consistently on the front end where certain themes wrap Verse lines. This PR simply adds a rule to prevent Verse lines from wrapping on the front end in addition to the editor.

Fixes #4138.

How has this been tested?

I loaded a Verse block with a long line in the following themes and verified it was not wrapped:

  • TwentyTwelve (previously did not wrap)
  • TwentyFifteen (previously wrapped Verse lines)
  • TwentySixteen (previously wrapped Verse lines)

@brandonpayton brandonpayton added the [Feature] Blocks Overall functionality of blocks label Sep 3, 2018
@brandonpayton brandonpayton added this to the 3.8 milestone Sep 3, 2018
@brandonpayton brandonpayton self-assigned this Sep 3, 2018
Copy link
Contributor

@talldan talldan left a comment

Choose a reason for hiding this comment

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

Had a read through the issue, this seems like a good compromise! 👍

pre.wp-block-verse {
white-space: nowrap;
overflow: auto;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we remove the corresponding styles from editor.scss?

Copy link
Member Author

Choose a reason for hiding this comment

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

I'd wondered about that too and was on the fence. It nice to see all relevant properties in a single file. Some other blocks have property duplication between editor.scss and style.scss, so I just went with duplicating for now.

Thanks for merging, @youknowriad.

@youknowriad youknowriad added the Needs Design Feedback Needs general design feedback. label Sep 5, 2018
@youknowriad
Copy link
Contributor

Got a confirmation that this is fine design wise

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Blocks Overall functionality of blocks Needs Design Feedback Needs general design feedback.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants