We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug When rendering a SandBox component outside Gutenberg, its content is not displayed because the iframe has a width set to 0.
SandBox
To Reproduce Execute the code below in a new React project after installing @wordpress/components.
@wordpress/components
import React from 'react'; import ReactDOM from 'react-dom'; import { SandBox } from '@wordpress/components'; import '@wordpress/components/build-style/styles.css'; const MySandBox = () => ( <SandBox html="<p>Content</p>" title="Sandbox" type="embed" /> ); ReactDOM.render( <MySandBox />, document.getElementById( 'root' ) );
Expected behavior The sandbox content is displayed.
Screenshots
Desktop:
Additional context Issue found while working on #8338 and Automattic/wp-calypso#26367
The text was updated successfully, but these errors were encountered:
Thank you for reporting this bug @mmtr, I was able to reproduce this problem.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Describe the bug
When rendering a
SandBox
component outside Gutenberg, its content is not displayed because the iframe has a width set to 0.To Reproduce
Execute the code below in a new React project after installing
@wordpress/components
.Expected behavior
The sandbox content is displayed.
Screenshots
Desktop:
Additional context
Issue found while working on #8338 and Automattic/wp-calypso#26367
The text was updated successfully, but these errors were encountered: