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

Media & text block: When the media is on the right, the media position of a nested block does not work #62047

Closed
carolinan opened this issue May 28, 2024 · 1 comment · Fixed by #62184
Labels
[Block] Media & Text Affects the Media & Text Block [Status] In Progress Tracking issues with work in progress [Type] Bug An existing feature does not function as intended

Comments

@carolinan
Copy link
Contributor

Description

This happens on WordPress 6.5.3 with and without Gutenberg active.
I have not tested with older versions of WordPress.

When you add a Media & Text block and set the media position to the right with the toolbar setting, and then insert a second media & text block in the block's content area: Then the media position option in the second media & text block does not work.

-The media starts on the right side, but the default for the block is to position the media on the left, so the expectation is for the media to start on the left side even if it is nested.

  • When using the media position option, the button looks activated, but the content area and media area does not switch places. Not in the editor or on the front.

Step-by-step reproduction instructions

Insert a Media & Text block.
Set the media position option in the block toolbar to the right.
Insert a second Media & Text block inside the first, and try to set its media position.

Screenshots, screen recording, code snippet

No response

Environment info

No response

Please confirm that you have searched existing issues in the repo.

Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

Yes

@amitraj2203
Copy link
Contributor

Hi @carolinan, I have created a PR for this issue.

Thank You

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 [Status] In Progress Tracking issues with work in progress [Type] Bug An existing feature does not function as intended
Projects
None yet
2 participants