Make WordPress Core

Opened 5 months ago

Last modified 5 months ago

#62356 new defect (bug)

Twenty Fifteen : On Adding background color to Navigation Block padding added in editor but not in frontend

Reported by: pitamdey's profile pitamdey Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Bundled Theme Keywords: has-screenshots has-testing-info
Focuses: Cc:

Description

In Twenty Fifteen Theme,
When we add background color to navigation block we can see a padding added in the editor side but not in the frontend side

Can we just make the two side similar

I have added a screenshot for better understanding

Attachments (3)

Screenshot 2024-11-07 at 5.51.04 PM.png (319.0 KB) - added by pitamdey 5 months ago.
Editor View
Screenshot 2024-11-07 at 5.51.22 PM.png (418.9 KB) - added by pitamdey 5 months ago.
Frontend View
62356.patch (876 bytes) - added by pitamdey 5 months ago.
After applying this solution the issue is resolved

Download all attachments as: .zip

Change History (10)

#1 @tusharaddweb
5 months ago

@pitamdey You have to add navigation to the group block and give it padding so that the padding in the editor and front view are the same.

#2 @pitamdey
5 months ago

Hi @tusharaddweb ...In other themes, it works well without adding the group block and custom padding. So I think it should work here also.

Let me know what your view on this

Thank you

@pitamdey
5 months ago

After applying this solution the issue is resolved

This ticket was mentioned in Slack in #core-test by oglekler. View the logs.


5 months ago

#4 @sukhendu2002
5 months ago

Reproduction Report

Description

In the Twenty Fifteen theme, when a background color is added to the navigation block, padding appears in the editor view but is not visible on the frontend, causing the editor and frontend to display inconsistently.

Environment

  • WordPress: 6.7
  • PHP: 8.1.29
  • Server: nginx/1.16.0
  • Database: mysqli (Server: 8.0.16 / Client: mysqlnd 8.1.29)
  • Browser: Chrome 130.0.6723.58
  • OS: macOS
  • Theme: Twenty Fifteen 3.9
  • MU Plugins: None activated
  • Plugins: Test Reports 1.2.0

Actual Results

  1. Padding appears in the editor but is missing on the frontend.

#5 @sukhendu2002
5 months ago

Test Report

Description

This report verifies that the indicated patch resolves the issue by correcting the inconsistency in padding between the editor and frontend views for the navigation block in the Twenty Fifteen theme.

Patch tested: https://core.trac.wordpress.org/attachment/ticket/62356/62356.patch

Environment

  • WordPress: 6.7
  • PHP: 8.1.29
  • Server: nginx/1.16.0
  • Database: mysqli (Server: 8.0.16 / Client: mysqlnd 8.1.29)
  • Browser: Chrome 130.0.6723.58
  • OS: macOS
  • Theme: Twenty Fifteen 3.9
  • MU Plugins: None activated
  • Plugins: Test Reports 1.2.0

Actual Results

  1. ✅ After applying the patch, the padding for the navigation block appears consistently on both the editor and frontend, confirming that the issue is resolved.

#6 @im3dabasia1
5 months ago

  • Keywords has-testing-info added

Reproduction Report

Description

This report validates whether the issue can be reproduced.

Environment

  • WordPress: 6.8-alpha-59274-src
  • PHP: 8.2.25
  • Server: nginx/1.27.2
  • Database: mysqli (Server: 8.0.40 / Client: mysqlnd 8.2.25)
  • Browser: Chrome 129.0.0.0
  • OS: macOS
  • Theme: Twenty Fifteen 3.9
  • MU Plugins: None activated
  • Plugins:
    • Test Reports 1.2.0

Actual Results

  1. ✅ Error condition occurs (reproduced).

Supplemental Artifacts

Editor: https://i.postimg.cc/kg4QqqTH/Screenshot-2024-12-04-at-10-51-22-PM.png
Frontend: https://i.postimg.cc/0j0Y2QgT/Screenshot-2024-12-04-at-10-48-20-PM.png

Last edited 5 months ago by im3dabasia1 (previous) (diff)

#7 @im3dabasia1
5 months ago

Test Report

Description

This report validates whether the indicated patch works as expected.

Patch tested: https://core.trac.wordpress.org/attachment/ticket/62356/62356.patch

Environment

  • WordPress: 6.8-alpha-59274-src
  • PHP: 8.2.25
  • Server: nginx/1.27.2
  • Database: mysqli (Server: 8.0.40 / Client: mysqlnd 8.2.25)
  • Browser: Chrome 129.0.0.0
  • OS: macOS
  • Theme: Twenty Fifteen 3.9
  • MU Plugins: None activated
  • Plugins:
    • Test Reports 1.2.0

Actual Results

  1. ✅ Issue resolved with patch.

Supplemental Artifacts

Frontend: https://i.postimg.cc/63dRY3Q8/Screenshot-2024-12-04-at-10-48-57-PM.png

Note: See TracTickets for help on using tickets.