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

[Mobile] Importing a Media-Text block without isStackedOnMobile set defaults to the wrong value #26039

Closed
chipsnyder opened this issue Oct 12, 2020 · 0 comments
Assignees
Labels
[Block] Media & Text Affects the Media & Text Block Mobile App - i.e. Android or iOS Native mobile impl of the block editor. (Note: used in scripts, ping mobile folks to change)

Comments

@chipsnyder
Copy link
Contributor

chipsnyder commented Oct 12, 2020

Describe the bug
When importing content to a post or page without isStackedOnMobile set will default to false where other instances default to true.

To reproduce
Steps to reproduce the behavior:

  1. In the demo app set the initial HTML content to:
export default `
<!-- wp:media-text {"align":"full","mediaId":696,"mediaType":"image","imageFill":true} -->
<div class="wp-block-media-text alignfull is-stacked-on-mobile is-image-fill"><figure class="wp-block-media-text__media" style="background-image:url('https://a8ctm1.files.wordpress.com/2020/01/dane-deaner-lgjoc2cmff4-unsplash.jpg?w=683');background-position:50% 50%;"><img src="https://a8ctm1.files.wordpress.com/2020/01/dane-deaner-lgjoc2cmff4-unsplash.jpg?w=683" alt="" class="wp-image-696" /></figure>
<div class="wp-block-media-text__content">
<!-- wp:paragraph {"className":"has-large-font-size"} -->
<p class="has-large-font-size"></p>
<!-- /wp:paragraph -->
</div></div>
<!-- /wp:media-text -->
  1. Run the demo app
  2. Expect the Media-text block to be stacked:
Actual Expected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Media & Text Affects the Media & Text Block Mobile App - i.e. Android or iOS Native mobile impl of the block editor. (Note: used in scripts, ping mobile folks to change)
Projects
None yet
Development

No branches or pull requests

1 participant