This repository was archived by the owner on Jan 23, 2024. It is now read-only.
fix(react-live-block): remove whiteSpace: pre
from LiveCodePreview
baseStyle
#518
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.
Closes #505
📝 Description
With the merge of PR #496 the intended purpose of including
whiteSpace: pre
with the addition ofoverflowX: auto
in theLiveCodePreview
component was to retain white-space when horizontal scroll occurs in live code example previews, so text content was not compressed. Unfortunately, an overlooked side effect is other previously unaffected examples forcing text content out of view with no ability to scroll, or creating new overflow. This PR simply removes thewhiteSpace
prop⛳️ Current behavior (updates)
Examples like those in the
Alert
docs have text content forced out of view in the preview window and no ability for horizontal scroll.Examples like the
Popover
basic usage have text content that overflows their parent components.🚀 New behavior
Examples that had parent component with relative width values will allow the text content to wrap and stay within the initial view of the container
💣 Is this a breaking change (Yes/No):
No