Opened 9 months ago
Last modified 9 months ago
#60080 new defect (bug)
Row block justification settings ignored in the iframed editor with classic themes
Reported by: | nidhidhandhukiya | Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | 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 (7)
#3
@
9 months 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:
Note: See
TracTickets for help on using
tickets.
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.