Opened 2 years ago
Closed 7 months ago
#60080 closed defect (bug) (reported-upstream)
Row block justification settings ignored in the iframed editor with classic themes
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Priority: | normal | |
| Severity: | normal | Version: | 6.4 |
| Component: | Editor | Keywords: | close |
| Focuses: | Cc: |
Description
Steps to reproduce the issue :-
- Activate Twenty Twenty one theme.
- Choose Row block.
- Add some text into that.
- Now choose justify center or right.
You can able to see a difference in front side but editor side it remains same.
I have attached video for better understanding.
Video URL :- https://share.cleanshot.com/hNt5nZsXBztn6Z36XqMy
Attachments (4)
Change History (8)
#3
@
2 years ago
- Component changed from Bundled Theme to Editor
- Keywords close added; has-patch removed
- Summary changed from Twenty Twenty one - row block having issue in editor when justify is used. to Row block justification settings ignored in the iframed editor with classic themes
- Version changed from 6.4.2 to 6.4
The problem can happen with any classic theme in the iframed post editor, including all the bundled themes from Twenty Ten to Twenty Twenty-One.
The editor's classic.css margins override the zero margin for flex items.
/* classic.css */
.editor-styles-wrapper .wp-block {
margin-left: auto;
margin-right: auto;
}
/* flex styles printed inline */
body .is-layout-flex > * {
margin: 0;
}
It happens in WordPress 6.4.2 without Gutenberg, plus it can occur with Gutenberg 16.9.0 (and possibly an earlier plugin version) with WP 6.3.
This discussion should continue on the Gutenberg repository, and these are related:
@
2 years ago
justification settings can work in WordPress 6.4.2 when the Custom Fields panel is activated (blocks are not in iframe)
#4
@
7 months ago
- Milestone Awaiting Review deleted
- Resolution set to reported-upstream
- Status changed from new to closed
I am going to suggest this is closed as I think the linked issues will cover how to continue the discussion, if that is wrong happy to form another issue. Thank you for reporting.
Test report for https://core.trac.wordpress.org/attachment/ticket/60080/60080.patch
Environment:
===========
WordPress: 6.4.2
PHP: 8.1.9
Web Server: Nginx
Browser: Chrome
OS: Windows 10
Testing Video:
============
Before Patch:
Video URL: https://www.awesomescreenshot.com/video/23322936?key=899c0bf1334e2319b60c1d244def1e62
After Patch:
Video URL: https://www.awesomescreenshot.com/video/23323064?key=cc46fdc14b84891e828cdda9bfb78e2d
Patch is working properly.