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

Layout Flex: Width and layout settings remove each other's styles in editor #55161

Closed
dmoux opened this issue Oct 9, 2023 · 1 comment
Closed
Labels
[Feature] Layout Layout block support, its UI controls, and style output. [Type] Bug An existing feature does not function as intended

Comments

@dmoux
Copy link

dmoux commented Oct 9, 2023

Description

When changing the width of inner block (fill or fixed) of the flex parent, the layout styles are removed. Conversely, if the layout settings are changed, the width style is removed. Only in the block editor, on the front version, all styles work correctly.

Step-by-step reproduction instructions

  1. Create a post, add a Row block and add another Row block inside it. For better clarity, fill this inner block with color and add text to it.
  2. Set the width for the inner Row block (Fill or any fixed width).
  3. Then change justification setting for the same block.
  4. Observe that the width has become auto again.
  5. If you set the width again to a new value, the block will be displayed with the new width, but the justification settings will not be applied.
  6. Save the post and open the page on the front. Observe that all styles and widths and justification are displayed correctly.

Screenshots, screen recording, code snippet

No response

Environment info

WordPress 6.4 and current plugin version.
WordPress 6.3 works correctly.

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

@jordesign jordesign added [Type] Bug An existing feature does not function as intended Needs Testing Needs further testing to be confirmed. [Feature] Layout Layout block support, its UI controls, and style output. labels Oct 9, 2023
@tellthemachines
Copy link
Contributor

Thanks for reporting this! The issue has already been fixed in #55291 which will ship in the next plugin version.

@tellthemachines tellthemachines removed the Needs Testing Needs further testing to be confirmed. label Oct 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Layout Layout block support, its UI controls, and style output. [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

No branches or pull requests

3 participants