Make WordPress Core

Opened 12 months ago

Closed 7 months ago

Last modified 7 months ago

#60079 closed defect (bug) (fixed)

Twenty Fifteen: Separator block is too thick in the iframe editor

Reported by: nidhidhandhukiya's profile nidhidhandhukiya Owned by: karmatosed's profile karmatosed
Milestone: 6.6 Priority: normal
Severity: normal Version: 6.3
Component: Bundled Theme Keywords: has-patch needs-testing
Focuses: css Cc:

Description

Steps to reproduce the issue :-

  1. Activate Twenty Fifteen theme.
  2. Choose separator block.
  3. Now see editor and front side.

You can able to see both the side block looks different.
I have attached video for better understanding.
Video URL :- https://share.cleanshot.com/nLtGwVmQWnDrHBvCZPV3

Attachments (4)

60079.patch (357 bytes) - added by nidhidhandhukiya 12 months ago.
60079.2.patch (796 bytes) - added by sabernhardt 12 months ago.
sets border to zero in editor-blocks.css and corrects the typo on "Separator"
60079.3.patch (769 bytes) - added by sabernhardt 11 months ago.
refreshed patch after [57300]
60079.4.patch (394 bytes) - added by sabernhardt 10 months ago.
sets border to zero in editor-blocks.css

Download all attachments as: .zip

Change History (11)

#1 @darshitrajyaguru97
12 months ago

Patch report for https://core.trac.wordpress.org/attachment/ticket/60079/60079.patch

Environment:
===========
WordPress: 6.4.2
PHP: 8.1.9
Web Server: Nginx
Browser: Chrome
OS: Windows 10

Screenshots:
===========
Before Patch:
Backend: https://prnt.sc/devt5LHX4RL7
Frontend: https://prnt.sc/xROKGfLbplYU

After Patch:
Backend: https://prnt.sc/devt5LHX4RL7
Frontend: https://prnt.sc/vLAV8NQpQbza

After Applying the patch it's working properly.

@sabernhardt
12 months ago

sets border to zero in editor-blocks.css and corrects the typo on "Separator"

#2 @sabernhardt
12 months ago

  • Focuses css added
  • Keywords has-patch 2nd-opinion added
  • Summary changed from Twenty Fifteen theme separator block is having visual difference in editor and front end. to Twenty Fifteen: Separator block is too thick in the iframe editor
  • Version changed from 6.4.2 to 6.3

The problem is in the iframe editor, not the front end. Separator blocks (and other hr elements) are intended to be thin in this theme.

Without the iframe, the editor added .editor-styles-wrapper to hr for styles from the Classic editor stylesheet, which would override the block's opt-in styles. Now the discrepancy between blocks.css and editor-blocks.css since [43798] can result in the 2-pixel bottom border (the original blocks stylesheet set border: 0 but editor-blocks did not).

On the other hand, the light color makes the separator almost imperceptible in the editor because the iframe pulls in wp-admin/css/common.css with its off-white background color on body. The mismatch does not bother me much when the extra-thick line is slightly easier to see and to click.

#3 @yuvrajsinh2211
12 months ago

Testing of patch: https://core.trac.wordpress.org/attachment/ticket/60079/60079.patch

Tested in the below environment:

PHP: 8.1.9
WordPress: 6.4
Theme: Twenty Fifteen
Browser: Chrome
Plugin: No plugins


Before Patch Screenshots:
Backend: https://prnt.sc/g9pRxD1ZOfzl
Frontend: https://prnt.sc/btCAh6CWy7V7


After Patch Screenshots:
Backend: https://prnt.sc/rD-bmLusWsSC
Frontend: https://prnt.sc/wxBdO_4-bhnB

As tested, Patch is working fine.

@sabernhardt
11 months ago

refreshed patch after [57300]

@sabernhardt
10 months ago

sets border to zero in editor-blocks.css

#4 @karmatosed
8 months ago

  • Keywords 2nd-opinion removed
  • Milestone changed from Awaiting Review to Future Release

#5 @karmatosed
7 months ago

  • Keywords needs-testing added
  • Milestone changed from Future Release to 6.6

This has testing and looks like a candidate to me to move to this release. I am going to do that but if anyone has objections let me know.

Next steps are to test to be sure as it has sat for a few weeks and then move to commit.

#6 @karmatosed
7 months ago

  • Owner set to karmatosed
  • Resolution set to fixed
  • Status changed from new to closed

In 58231:

Twenty Fifteen: Resolves seperator block being too thick in iframe editor.

The seperator block was looking different in the iframe editor. This resolves that by unifying.

Props nidhidhandhukiya, sabernhardt, darshitrajyaguru97, yuvrajsinj2211.
Fixes #60079.

#7 @karmatosed
7 months ago

I tested this so moved it to commit, thank you everyone.

Note: See TracTickets for help on using tickets.