Block: Column - Add word-break CSS to allow wrapping of long lines #10198
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
As per #7921, this allows long-lines to break within columns.
To replicate: Create a columns area with single unbroken stream of letters. This wraps correctly in the back-end but unexpectedly pushes the second column out of bounds of the page whilst on the front-end.
How has this been tested?
I could replicate the fix on Chrome, Safari, Firefox and Chrome. IE11 seemingly never had the problem, Edge 16 and Edge 17 do.
To note - the break-word property is not supported on Edge. The suggested solution to use
-ms-break-word: break-all;
is a bad solution as it then breaks the entire word - which seems like an unexpected and bad user experience.Screenshots
Types of changes
Single line change to style.scss of Columns block.
Checklist: