Make WordPress Core

Opened 3 weeks ago

Last modified 2 weeks ago

#63469 new defect (bug)

Twenty Nineteen: Table block Stripes style does not show borders in the editor

Reported by: viralsampat's profile viralsampat Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 6.4
Component: Bundled Theme Keywords: has-patch
Focuses: css Cc:

Description

Hello Team,

I noticed that the Table block does not render correctly on the front-end when the "Stripes" style is applied. The appearance differs from what is shown in the editor.

Upon investigation, it seems that the issue is caused by the theme's CSS overriding the default styling of the table block on the front-end.

I believe the visual output should remain consistent between the editor and front-end for better user experience.

For the reference, Here, I have attached the video along with the corresponding screenshots.

Thanks,

Attachments (7)

table-block.mp4 (2.3 MB) - added by viralsampat 3 weeks ago.
Issue video:
Screenshot 2025-05-21 at 1.40.20 PM.png (389.9 KB) - added by viralsampat 3 weeks ago.
Table block CSS override
63469.patch (734 bytes) - added by viralsampat 3 weeks ago.
I have checked above mentioned issue and I have resolved it and added patch. Also, I have attached screenshot after resolved this issue.
Editor-table-block.png (269.6 KB) - added by viralsampat 3 weeks ago.
Editor-end
front-end-table-block.png (160.5 KB) - added by viralsampat 3 weeks ago.
Front-end
63469_Editor_Stripes.jpg (150.2 KB) - added by avinashbhosale 3 weeks ago.
Editor
63469_FrontEnd_Stripes.jpg (146.1 KB) - added by avinashbhosale 3 weeks ago.
FrontEnd

Change History (12)

@viralsampat
3 weeks ago

Issue video:

@viralsampat
3 weeks ago

Table block CSS override

@viralsampat
3 weeks ago

I have checked above mentioned issue and I have resolved it and added patch. Also, I have attached screenshot after resolved this issue.

@viralsampat
3 weeks ago

Editor-end

@viralsampat
3 weeks ago

Front-end

#1 @sainathpoojary
3 weeks ago

Test Report

Description

This report validates whether the indicated patch works as expected.

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

Environment

  • WordPress: 6.9-alpha-60093-src
  • PHP: 8.2.28
  • Server: nginx/1.27.5
  • Database: mysqli (Server: 8.4.5 / Client: mysqlnd 8.2.28)
  • Browser: Chrome 136.0.0.0
  • OS: macOS
  • Theme: Twenty Nineteen 3.1
  • MU Plugins: None activated
  • Plugins: Test Reports 1.2.0

Actual Results

✅ Issue resolved with patch.

Supplemental Artifacts

Before:
https://rioudcpuyg.ufs.sh/f/PL8E4NiPUWyOosfSvWDgRVfkrM3cxj5whHLEvyNZCb2PpWuo

After:
https://rioudcpuyg.ufs.sh/f/PL8E4NiPUWyOBOxmUYZ01UHRG85yihbLqO4YmEXjegTsuz6x

#2 @sabernhardt
3 weeks ago

  • Focuses ui removed
  • Keywords needs-patch added; dev-feedback needs-testing 2nd-opinion has-patch removed
  • Summary changed from In the Twenty Nineteen theme, the Table block doesn’t display correctly when the 'Stripes' style is applied. The styling appears to be missing or not rendering as expected. to Twenty Nineteen: Table block Stripes style does not show borders in the editor
  • Version set to 6.4

Twenty Nineteen has given the Table blocks a gray border on the front end since the initial version, whether the style was Default or Stripes. When the editor removed .editor-styles-wrapper from the theme's styles, the block library styles overrode the border color with transparent.

You probably could add .editor-styles-wrapper in the SCSS to increase specificity:

.editor-styles-wrapper .wp-block-table {

	td, th {
		border-color: $color__text-light;
	}
}

which would compile to this in style-editor.css:

.editor-styles-wrapper .wp-block-table td, .editor-styles-wrapper .wp-block-table th {
  border-color: #767676;
}

#3 @avinashbhosale
3 weeks ago

Reproduction Report

Description

This report validates that the issue can be reproduced.

Environment

  • WordPress: 6.8.1
  • PHP: 8.2.27
  • Server: nginx/1.26.1
  • Database: mysqli (Server: 8.0.35 / Client: mysqlnd 8.2.27)
  • Browser: Chrome 137.0.0.0
  • OS: Windows 10/11
  • Theme: Twenty Nineteen 3.1
  • MU Plugins: None activated
  • Plugins:
    • Admin and Site Enhancements (ASE) 7.8.12
    • Site Kit by Google 1.153.0
    • Test Reports 1.2.0
    • WP Consent API 1.0.8

Actual Results

  1. ✅ Error condition occurs (reproduced).

Attachments

screenshots -
https://core.trac.wordpress.org/attachment/ticket/63469/63469_Editor_Stripes.jpg
https://core.trac.wordpress.org/attachment/ticket/63469/63469_FrontEnd_Stripes.jpg

Last edited 3 weeks ago by avinashbhosale (previous) (diff)

#4 @Subrata Deb Nath
2 weeks ago

This report validates whether the indicated patch works as expected.

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

Environment
WordPress: 6.9-alpha-60093-src
PHP: 8.2.28
Server: nginx/1.27.5
Database: mysqli (Server: 8.4.5 / Client: mysqlnd 8.2.28)
Browser: Chrome 136.0.0.0
OS: Windows 11
Theme: Twenty Nineteen 3.1
MU Plugins: None activated
Plugins: Test Reports 1.2.0
Actual Results
✅ Issue resolved with patch.

This ticket was mentioned in PR #8853 on WordPress/wordpress-develop by @sabernhardt.


2 weeks ago
#5

  • Keywords has-patch added; needs-patch removed

Adds the body element to the selector in editor styles to show the theme's border color, even with the Stripes style. With older versions of WordPress, body is changed to .editor-styles-wrapper.

Trac 63469

Note: See TracTickets for help on using tickets.