Skip to content
This repository was archived by the owner on Jan 23, 2024. It is now read-only.

Conversation

TylerAPfledderer
Copy link
Collaborator

Closes #505

📝 Description

With the merge of PR #496 the intended purpose of including whiteSpace: pre with the addition of overflowX: auto in the LiveCodePreview 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 the whiteSpace 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

@vercel
Copy link

vercel bot commented Apr 9, 2022

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/chakra-ui/chakra-ui-docs/J53iW5JcQQNRAo6EvZ4RvCBsQUKr
✅ Preview: https://chakra-ui-docs-git-fork-tylerapfledderer-fix-r-098ae8-chakra-ui.vercel.app

@nikolovlazar nikolovlazar merged commit 3eef602 into chakra-ui:main Apr 11, 2022
@TylerAPfledderer TylerAPfledderer deleted the fix/react-live-block-remove-whitespace branch April 11, 2022 14:39
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs(alert): Alerts examples responsiveness issues

2 participants