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: |
|
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)
Change History (12)
@
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.
#1
@
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
#2
@
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
@
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
- ✅ 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
#4
@
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
.
Issue video: